about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass-dep/shims
AgeCommit message (Collapse)AuthorLines
2025-08-29Merge pull request #4371 from CraftSpider/duplicate-handle-testRalf Jung-6/+41
Add shim test for `DuplicateHandle`
2025-08-29Add duplicate handle test + make null lpTargetHandle an abort, not an ↵Rune Tynan-6/+41
unsupported.
2025-06-29Add shims for `gettid`-esque functionsTrevor Gross-0/+183
Various platforms provide a function to return the current OS thread ID, but they all use a slightly different name. Add shims for these functions for Apple, FreeBSD, and Windows, with tests to account for those and a few more platforms that are not yet supported by Miri. The syscall and extern symbol is included as well on Linux. These should be useful in general but will also help support printing the OS thread ID in panic messages [1]. [1]: https://github.com/rust-lang/rust/pull/115746 Squashed commit from Ralf: try_from_scalar: extend comment
2025-05-22Implement file read/write on WindowsRune Tynan-8/+89
2025-05-21Implement FreeBSD syscall cpuset_getaffinity.LorrensP-2158466-0/+51
2025-04-11Implement DeleteFileWRune Tynan-4/+21
2025-04-10Implement RtlNtStatusToDosError and shim test for itRune Tynan-1/+10
2025-04-08Implement trivial file operations - opening and closing handles. Just enough ↵Rune Tynan-0/+198
to get file metadata.
2024-05-06organize libc tests into a proper folder, and run some of them on WindowsRalf Jung-1445/+0
2024-05-05solaris support start.David Carlier-2/+2
2024-05-05move randomness tests into a single file and share the getrandom ↵Ralf Jung-57/+23
implementation across unices
2024-05-05move things out of libc-misc that have a better home; make libc-misc work on ↵Ralf Jung-361/+353
illumos
2024-05-04also test pthread_condattr_getclockRalf Jung-1/+26
2024-05-04macos: use getentropy from libcRalf Jung-7/+0
2024-04-22Add localtime_r shimtiif-0/+45
2024-03-29stabilize ptr.is_aligned, move ptr.is_aligned_to to a new feature gateAria Beingessner-1/+1
This is an alternative to #121920
2024-03-24Add libc test for rename and ftruncatetiif-0/+63
2024-02-22fmtThe Miri Conjob Bot-2/+3
2024-02-22Merge from rustcThe Miri Conjob Bot-6/+6
2024-02-21rename ptr::invalid -> ptr::without_provenanceRalf Jung-6/+6
also introduce ptr::dangling matching NonNull::dangling
2024-02-17add direct test of pthread_condRalf Jung-4/+52
2024-02-12also test pthread_mutex/rwlock directlyRalf Jung-7/+122
turns out one of the synchronizations in rwlock_writer_unlock is unnecessary
2024-02-12comment tweaksRalf Jung-3/+2
2024-02-10Factor out the redundancy between `test_mmap` and `test_mmap64`.Dan Gohman-127/+24
2024-01-30Implement the `mmap64` foreign item.Dan Gohman-0/+114
`mmap64` is like `mmap` but uses a 64-bit integer instead of `off_t` for the offset parameter.
2024-01-28Auto merge of #3181 - devnexen:stat_calls_fbsd, r=RalfJungbors-1/+0
freebsd add *stat calls interception support
2023-12-28Fix integer overflow ICEs from round_up_to_next_multiple_ofBen Kimock-0/+21
2023-12-18Auto merge of #3220 - saethlin:strict-mmap, r=RalfJungbors-3/+2
Make mmap not use expose semantics Fixes https://github.com/rust-lang/miri/issues/3041 per https://github.com/rust-lang/miri/issues/3041#issuecomment-1711235196
2023-12-17Make mmap not use expose semanticsBen Kimock-3/+2
2023-12-12Merge from rustcThe Miri Conjob Bot-1/+0
2023-12-10Return MAP_FAILED when mmap failsBen Kimock-0/+79
2023-12-10remove redundant importssurechen-1/+0
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-11-26freebsd add *stat calls interception supportDavid Carlier-1/+0
2023-11-23detect and test for data races between setenv and getenvRalf Jung-3/+2
2023-11-20libc-misc test freebsd fixes attemptDavid Carlier-51/+45
2023-11-16move reallocarray test into libc-miscRalf Jung-16/+17
2023-11-16make libc-misc pass under FreeBSDRalf Jung-0/+7
2023-11-16split thread test into synchronization primitives and threadnameRalf Jung-60/+51
2023-11-16reallocarray shim linux/freebsd support proposal.David Carlier-0/+16
2023-11-15freebsd adding getrandom interception.David Carlier-1/+4
note that os support was added in same time as getentropy.
2023-11-13share getentropy shim across various unixesRalf Jung-3/+12
2023-11-13freebsd adding getentropy interception supportDavid Carlier-0/+11
2023-11-12tweak commentsRalf Jung-9/+5
2023-11-12freebsd interceptions update proposalDavid Carlier-3/+31
2023-10-25CLOCK_UPTIME_RAW exists on all macos targets, not just the ARM onesRalf Jung-1/+1
2023-10-06add a direct dlsym testRalf Jung-0/+14
2023-07-30refactor tests/utils a bit, and move some FS functions thereRalf Jung-53/+13
2023-06-20Make munmap throw unsup errors instead of trying to workBen Kimock-13/+0
2023-06-20mmap/munmap/mremamp shimsBen Kimock-0/+83
2023-05-08port tests to 2021 editionRalf Jung-1/+0