summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-06-13 00:08:58 +0000
committerTrevor Gross <tmgross@umich.edu>2025-06-29 15:53:58 -0500
commitd69b8e2b48cd5e3ac4f8ee7af995241ea7c3a010 (patch)
tree36f8abc1373bfd96fc3ae734ba589a9cc5db408c /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent85357d1e5cf56d8aca54e7d4f6cc365b006f484a (diff)
downloadrust-d69b8e2b48cd5e3ac4f8ee7af995241ea7c3a010.tar.gz
rust-d69b8e2b48cd5e3ac4f8ee7af995241ea7c3a010.zip
Add shims for `gettid`-esque functions
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
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions