llvm-project/libcxx/test/support
Ryan Prichard 6c44ccab43 [libc++] Fix 64-bit file creation for Bionic and Windows
Bionic didn't add fopen64 until API 24, but there's no meaningful
distinction between them with Bionic, so just use fopen instead.

On Windows, use _chsize_s instead of _chsize. _chsize uses a 32-bit
`long` size argument, while _chsize_s uses __int64 instead.

Factor out utils::{off64_t, fopen64, ftruncate64} for use within the
create_file function.

Reviewed By: ldionne, #libc, mstorsjo

Differential Revision: https://reviews.llvm.org/D137132
2022-12-01 14:48:20 -08:00
..
test.support [libc++] Add utilites for instantiating functions with multiple types 2022-11-21 20:35:06 +01:00
test.workarounds [libcxx][test] compiler options are non-portable 2022-01-18 11:34:57 -08:00
type_classification [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
Counter.h
DefaultOnly.h
MoveOnly.h [libc++] Implement P0591R4 (Utility functions to implement uses-allocator construction) 2022-10-06 16:58:51 +02:00
allocators.h [libc++] Granularize the rest of memory 2022-09-05 12:36:41 +02:00
almost_satisfies_types.h [libc++][ranges] Implement `ranges::{prev, next}_permutation`. 2022-08-02 22:46:15 -07:00
any_helpers.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
archetypes.h [libc++] Granularize <iterator> includes 2022-06-10 22:43:57 +02:00
archetypes.ipp
asan_testing.h [libc++] Implement P1004R2 (constexpr std::vector) 2022-07-27 20:26:44 +02:00
atomic_helpers.h [libc++] Remove macros for IBM compiler 2022-06-14 09:15:41 -04:00
boolean_testable.h [libc++] Implement ranges::lexicographical_compare 2022-06-15 22:29:21 +02:00
callable_types.h [libc++] Suppress -Wctad-maybe-unsupported on types w/o deduction guides 2022-10-03 14:05:08 -04:00
charconv_test_helpers.h [libc++] Implements constexpr <charconv>. 2022-10-12 17:43:23 +02:00
check_assertion.h [libc++] Rename __libcpp_assertion_handler to __libcpp_verbose_abort 2022-07-29 13:52:42 -04:00
cmpxchg_loop.h
compare_types.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
constexpr_char_traits.h [libc++][NFC] Remove reserved names from support/constexpr_char_traits.h 2022-08-26 17:37:47 +02:00
container_debug_tests.h [libc++] Make the Debug mode a configuration-time only option 2022-06-07 16:33:53 -04:00
container_test_types.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
controlled_allocators.h [libc++] Granularize the rest of memory 2022-09-05 12:36:41 +02:00
copy_move_types.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
count_new.h [libc++] Implement P2438R2 (std::string::substr() &&) 2022-11-02 20:28:47 +01:00
counting_predicates.h [libc++][ranges] Implement `ranges::replace_copy{,_if}`. 2022-08-02 22:32:01 -07:00
counting_projection.h [libc++][ranges] Implement `ranges::remove_copy{, _if}`. 2022-08-02 22:19:13 -07:00
deduction_guides_sfinae_checks.h [libc++] Granularize <iterator> includes 2022-06-10 22:43:57 +02:00
deleter_types.h [libc++] Implement P2273R3 (`constexpr` `unique_ptr`) 2022-09-03 18:49:50 +07:00
emplace_constructible.h
experimental_any_helpers.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
external_threads.cpp
filesystem_include.h
filesystem_test_helper.h [libc++] Fix 64-bit file creation for Bionic and Windows 2022-12-01 14:48:20 -08:00
format_string.h [libcxx] Fixed a number of typos 2022-08-02 12:42:34 +02:00
fp_compare.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
hexfloat.h
indirectly_readable.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
is_transparent.h [libc++] [P0919] Some belated review on D87171. 2021-09-20 14:46:38 -04:00
iterator_traits_cpp17_iterators.h
locale_helpers.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
make_implicit.h
make_string.h [libc++] Implement P2438R2 (std::string::substr() &&) 2022-11-02 20:28:47 +01:00
make_test_thread.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
min_allocator.h [libc++] Granularize the rest of memory 2022-09-05 12:36:41 +02:00
msvc_stdlib_force_include.h [libcxx][test] Suppress complex<int> warnings when testing MSVC 2022-06-23 17:46:54 -07:00
nasty_containers.h
operator_hijacker.h [libc++] Use addressof in assignment operator. 2021-10-07 18:10:47 +02:00
parse_integer.h
platform_support.h [libc++] Get rid of _LIBCPP_HAS_OPEN_WITH_WCHAR in the test suite 2022-10-05 11:27:24 -04:00
pointer_comparison_test_helper.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
poisoned_hash_helper.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
private_constructor.h
propagate_const_helpers.h
propagate_value_category.hpp
rapid-cxx-test.h
read_write.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
set_windows_crt_report_mode.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
string_literal.h [NFC][libc++][format] Prepare unit tests. 2022-04-08 17:11:45 +02:00
template_cost_testing.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
test_allocator.h [libc++] Implement P1004R2 (constexpr std::vector) 2022-07-27 20:26:44 +02:00
test_basic_format_arg.h [libc++][format] Add __format_arg_store. 2021-09-01 19:45:02 +02:00
test_comparisons.h [libc++][spaceship] Implement std::variant::operator<=> 2022-08-14 16:16:52 -07:00
test_constexpr_container.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
test_convertible.h
test_format_context.h [libc++][test] Don't use _LIBCPP macros. 2022-10-26 17:42:11 +02:00
test_format_string.h [libc++][test] Adds format string helper. 2022-09-20 18:58:37 +02:00
test_iterators.h [libc++] Add utilites for instantiating functions with multiple types 2022-11-21 20:35:06 +01:00
test_macros.h [libc++] Introduce a setting to remove fstream from the library 2022-11-20 10:51:32 -05:00
test_memory_resource.h
test_range.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
test_std_memory_resource.h [libc++][PMR] Add attributes 2022-11-01 00:36:58 +01:00
test_transparent_unordered.h [libc++] [P0919] Some belated review on D87171. 2021-09-20 14:46:38 -04:00
test_workarounds.h [libcxx][test] compiler options are non-portable 2022-01-18 11:34:57 -08:00
truncate_fp.h
type_algorithms.h [libc++] Add utilites for instantiating functions with multiple types 2022-11-21 20:35:06 +01:00
type_id.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
unique_ptr_test_helper.h [libc++] Implement P2273R3 (`constexpr` `unique_ptr`) 2022-09-03 18:49:50 +07:00
user_defined_integral.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
uses_alloc_types.h [libc++] Remove uses of printf in some test support headers 2021-11-22 12:01:18 -05:00
variant_test_helpers.h [libc++][NFC] Consistently use newline between license and include guard 2022-11-25 10:25:17 -05:00
wide_temp_file.h [libc++] Get rid of _LIBCPP_HAS_OPEN_WITH_WCHAR in the test suite 2022-10-05 11:27:24 -04:00