Skip to content

[32 bit musl] Fix around symbol redirection #1131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 72 commits into from
Mar 22, 2025
Merged
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
5b975d5
add null_terminated_c_str_v for a null terminated string literal
Feb 10, 2025
2410170
fix __builtin_addressof(::fast_io::char_literal_v<ch_type, 0>
Feb 10, 2025
7804627
string_view uses null_terminated_c_str_v
trcrsired Feb 10, 2025
1ff5b01
Fix warnings caused by macromodel
trcrsired Feb 10, 2025
a613246
change string.h to lf
trcrsired Feb 11, 2025
dbd5b39
overhual the implementation of string.h to remove the self-referencin…
trcrsired Feb 11, 2025
f856ffc
fix string append for empty string
trcrsired Feb 11, 2025
e8c6889
Add fuzzing tests for string
trcrsired Feb 11, 2025
0b53b24
fuzzing test for string.cc
trcrsired Feb 11, 2025
1f258e9
add potential zero test
trcrsired Feb 11, 2025
b7b82a1
fix warnings in string fuzzing
trcrsired Feb 11, 2025
7369e83
[vector] add resize and vecstring fuzzing test
trcrsired Feb 11, 2025
b8dbb1e
[Fix] vector resize
trcrsired Feb 11, 2025
6f4f144
[vector] add assign
trcrsired Feb 11, 2025
b3f09d5
Merge remote-tracking branch 'parent/next'
trcrsired Feb 11, 2025
ca13229
[string] update begin_ptr and end_ptr in assign
trcrsired Feb 11, 2025
8cde559
Merge remote-tracking branch 'parent/next'
trcrsired Feb 11, 2025
bc59ac4
[libcxx] support -DLIBCXX_ENABLE_WIDE_CHARACTERS=Off
trcrsired Feb 13, 2025
dfcd3b9
[legacy example] add darwin version detect
Feb 13, 2025
fba0804
Merge remote-tracking branch 'parent/next'
Feb 13, 2025
a01cb46
Merge remote-tracking branch 'parent/next'
trcrsired Feb 18, 2025
bdfbded
add win-ldd as an example
trcrsired Feb 19, 2025
082b92c
use w api
trcrsired Feb 19, 2025
5d0d846
[win-ldd] use out_buf_type to improve performance
trcrsired Feb 19, 2025
3abf378
[win-ldd] fix warning for DWORD
trcrsired Feb 19, 2025
d780951
[win-ldd] merge code into win-ldd
trcrsired Feb 19, 2025
f6b5f86
do not sort win-ldd
trcrsired Feb 19, 2025
a5aaed5
[win-ldd]fix compilation for libc++
trcrsired Feb 19, 2025
688e9a1
Merge remote-tracking branch 'parent/next'
trcrsired Feb 20, 2025
4dd2b81
[win-ldd] should be win-ldd
trcrsired Feb 20, 2025
856cd14
[intrinsics] Workaround of braindeath of Microsoft Visual C++
trcrsired Feb 20, 2025
3464239
[macros] add push/pop macros for win32 imports
trcrsired Feb 21, 2025
f402797
[macros] Add FAST_IO_STDCALL
trcrsired Feb 21, 2025
2664a0b
[macros] Fix push_macros and remove core/macros
trcrsired Feb 21, 2025
d739b90
[win32 apis] use macros to import apis
trcrsired Feb 21, 2025
cbd7768
[macros] remove push_macros in core. use dsal instead
trcrsired Feb 21, 2025
bfc8483
[macros] further cleanup dllimport, particularly for cdecl calls
trcrsired Feb 21, 2025
c7f07e1
[posix.h] Fix cygwin macro guard
trcrsired Feb 21, 2025
91092b7
[NT] Cleanup API imports too
trcrsired Feb 21, 2025
40412a8
[NT] remove nt_linker.h since we have splitted it into two seperate f…
trcrsired Feb 21, 2025
416f7d8
[nt] nt_api.h remove two empty lines
trcrsired Feb 21, 2025
24956f2
[nt] Missing nt_flush_buffers_file_ex
trcrsired Feb 21, 2025
37e044e
[NT] Fix missing apis
trcrsired Feb 21, 2025
c6d6da4
[msvc] fix linker symbols on x86_64
trcrsired Feb 21, 2025
8773a82
[arm64ec] Experimental support for arm64ec
trcrsired Feb 21, 2025
7216ac0
[arm64ec]#__RTtypeid is repeated
trcrsired Feb 21, 2025
4a7214a
Merge branch 'next' into master
trcrsired Feb 21, 2025
cd4c065
[arm64ec] push_macros for clang?
trcrsired Feb 21, 2025
e31e5af
add errors for arm64ec
trcrsired Feb 21, 2025
c5e82c2
WTF with not finding the file?
trcrsired Feb 22, 2025
4d70b5d
Merge remote-tracking branch 'parent/next'
trcrsired Feb 24, 2025
6d4f351
add fuzzing macro
trcrsired Feb 24, 2025
6ac902f
it should be just called FAST_IO_DEBUG to avoid confusion. The code i…
trcrsired Feb 24, 2025
44dc880
Merge remote-tracking branch 'parent/next'
trcrsired Feb 24, 2025
26be0c1
Merge remote-tracking branch 'parent/next'
trcrsired Feb 25, 2025
9cf5831
Merge remote-tracking branch 'parent/next'
trcrsired Mar 1, 2025
46e5366
[DOS] fix massive amount of compilation errors
trcrsired Mar 1, 2025
692e8bb
[DOS] openat functions use a common implementation instead of template
trcrsired Mar 1, 2025
a684e38
[DOS] Fix Warnings under -Wall -Wextra -Wpedantic -Wmisleading-indent…
trcrsired Mar 1, 2025
97c6b52
Merge branch 'next' into master
trcrsired Mar 1, 2025
c5ff484
Merge remote-tracking branch 'parent/next'
Mar 4, 2025
b5db218
Merge remote-tracking branch 'parent/next'
trcrsired Mar 5, 2025
72a6d11
linker?
trcrsired Mar 5, 2025
c13e24a
Merge remote-tracking branch 'parent/next'
trcrsired Mar 9, 2025
416dde3
Merge remote-tracking branch 'refs/remotes/origin/master'
trcrsired Mar 9, 2025
dd7597b
Merge remote-tracking branch 'parent/next'
trcrsired Mar 14, 2025
c54fecd
Merge remote-tracking branch 'parent/next'
trcrsired Mar 14, 2025
0b62031
revert changes of wincrt
trcrsired Mar 14, 2025
6d82c90
Merge branch 'master' of github.com:trcrsired/fast_io
trcrsired Mar 14, 2025
e1cc65e
Merge remote-tracking branch 'parent/next'
trcrsired Mar 22, 2025
903457e
Merge remote-tracking branch 'refs/remotes/origin/master'
trcrsired Mar 22, 2025
8c878da
fix up musl bug?
trcrsired Mar 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions include/fast_io_hosted/timeutil/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ extern int libc_clock_getres(clockid_t clk_id, struct timespec *tp) noexcept __a
extern int libc_clock_settime(clockid_t clk_id, struct timespec const *tp) noexcept __asm__("_clock_settime");
extern int libc_clock_gettime(clockid_t clk_id, struct timespec *tp) noexcept __asm__("_clock_gettime");
#else
#if _REDIR_TIME64
extern int libc_clock_getres(clockid_t clk_id, struct timespec *tp) noexcept __asm__("__clock_getres64");
extern int libc_clock_settime(clockid_t clk_id, struct timespec const *tp) noexcept __asm__("__clock_settime64");
extern int libc_clock_gettime(clockid_t clk_id, struct timespec *tp) noexcept __asm__("__clock_gettime64");
#else
extern int libc_clock_getres(clockid_t clk_id, struct timespec *tp) noexcept __asm__("clock_getres");
extern int libc_clock_settime(clockid_t clk_id, struct timespec const *tp) noexcept __asm__("clock_settime");
extern int libc_clock_gettime(clockid_t clk_id, struct timespec *tp) noexcept __asm__("clock_gettime");
#endif
#endif
#elif defined(__MSDOS__)
struct tm *libc_localtime_r(::std::time_t const *timep, struct tm *result) noexcept
#ifdef __MSDOS__
Expand Down Expand Up @@ -644,6 +650,7 @@ inline unix_timestamp posix_clock_gettime([[maybe_unused]] posix_clock_id pclk_i
{
throw_posix_error();
}

constexpr ::std::uint_least64_t mul_factor{uint_least64_subseconds_per_second / 1000000000u};
return {static_cast<::std::int_least64_t>(res.tv_sec),
static_cast<::std::uint_least64_t>(res.tv_nsec) * mul_factor};
Expand Down