Commit Graph

  • 0428cffac5 Don't pass BorrowedFd by reference, in even more places. Dan Gohman 2022-05-10 17:45:04 -07:00
  • 51142cef18 Use syscall_readonly in setrlimit. Dan Gohman 2022-05-10 08:06:52 -07:00
  • 537a606203 Add a test for const_assert which is a const fn. Dan Gohman 2022-05-10 19:14:57 -07:00
  • ac7a407740 Add some more miscellaneous tests. Dan Gohman 2022-05-03 22:02:46 -07:00
  • a95d26329e Don't use syscall_readonly in set_thread_area. Dan Gohman 2022-05-10 08:04:55 -07:00
  • d9e212ab20 Assert that raw_fd isn't used with the io_uring_register_files_skip fd. Dan Gohman 2022-05-04 09:59:34 -07:00
  • a84a2db5a1 Remove some unneeded unused_imports attributes. Dan Gohman 2022-05-04 09:47:01 -07:00
  • 243e8c5197 Rename rustix::io::Error to rustix::io::Errno. Dan Gohman 2022-04-29 09:14:00 -07:00
  • 6af9d52d8c Support io::MapFlags::FIXED on FreeBSD and OpenBSD Roland Kovacs 2022-05-12 18:09:06 +02:00
  • 5d0a5f52e0 Move as_ptr and as_mut_ptr into a utils module. Dan Gohman 2022-05-03 22:35:29 -07:00
  • 89c281fd8a Replace many conversion functions with From impls. (#304) Dan Gohman 2022-05-10 06:04:23 -07:00
  • 561400af9c Tidy up several comments. Dan Gohman 2022-05-03 21:07:23 -07:00
  • adadf9e9c9 Change several non-public things from pub to pub(crate). Dan Gohman 2022-05-04 06:51:34 -07:00
  • 99fd6e5ccc Fix y2038 bugs in the libc backend on glibc platforms. Dan Gohman 2022-05-08 06:40:10 -07:00
  • 89d78389d4 Avoid using std::mem::transmute in several places. Dan Gohman 2022-05-05 07:00:52 -07:00
  • db2571463c Don't pass BorrowedFd by reference, in more places. Dan Gohman 2022-04-30 08:38:30 -07:00
  • eae6691de8 Add some missing Linux 5.17 features. Dan Gohman 2022-04-19 21:08:51 -07:00
  • a946a14762 Put net, time, and other parts of the API behind feature flags (#297) Dan Gohman 2022-05-02 10:54:40 -07:00
  • 2dcc0d1694 Rename Windows' c.rs to winsock_c.rs. Dan Gohman 2022-04-26 16:23:42 -07:00
  • c688ca0734 Port from winapi to windows-sys. Dan Gohman 2022-01-14 15:48:18 -08:00
  • 2b717917b8 Fix unsoundness in rustix::fs::Dir. Dan Gohman 2022-05-02 09:27:35 -07:00
  • 9e05bfba58 Disable the x86_64-uwp-windows-msvc cross-check for now. Dan Gohman 2022-04-30 06:22:40 -07:00
  • 8a14c535f1 Updates for rustc-dep-of-std mode. Dan Gohman 2022-04-19 07:10:42 -07:00
  • 76b5579230 Fix missing derives on public enums. Dan Gohman 2022-04-19 21:01:17 -07:00
  • f10043e3dd Fix a warning when the zstr macro is used within unsafe code. Dan Gohman 2022-04-18 16:13:35 -07:00
  • 1292badd7b Fix the visibility of mod elf in linux_raw. Dan Gohman 2022-04-13 19:13:45 -07:00
  • 3e8957c62c Tidy up unsafe block safety comments. Dan Gohman 2022-04-13 19:00:44 -07:00
  • 9c80da96ab Fix a few clippy lints. Dan Gohman 2022-04-13 10:50:50 -07:00
  • 8352028e9e Remove more unneeded &s. Dan Gohman 2022-04-25 09:50:41 -07:00
  • 78fc85f6d7 Don't pass BorrowedFd by reference. Dan Gohman 2022-04-25 09:48:12 -07:00
  • ff0f2e1f2e Update to qemu 7.0.0. Dan Gohman 2022-04-27 08:47:32 -07:00
  • d8e0d1d110 Add Linux io_uring APIs. (#290) Dan Gohman 2022-04-25 09:33:26 -07:00
  • 3fa54e1de2 Fix a typo in a comment. Dan Gohman 2022-04-19 10:51:49 -07:00
  • 51870b5d58 Reformat comments to wrap long lines. Dan Gohman 2022-04-19 10:51:29 -07:00
  • 2e213ae0b5 Fix comment syntax. Dan Gohman 2022-04-19 10:08:07 -07:00
  • 38d4d8d73a Fix typos in comments. Dan Gohman 2022-04-18 16:13:30 -07:00
  • 4edf59d1fe Fix broken links in doc comments. Dan Gohman 2022-04-18 16:13:37 -07:00
  • ce827448c9 Implement a new rustix::termios module. (#274) Dan Gohman 2022-04-18 15:38:53 -07:00
  • 30e7bd2756 Fix an unused import warning. Dan Gohman 2022-04-12 09:49:51 -07:00
  • f954161eac Fix use-libc compilation error. Dan Gohman 2022-04-12 09:32:23 -07:00
  • 1ddac0f56d Simplify the "procfs" feature. Dan Gohman 2022-04-12 09:19:02 -07:00
  • 692eba5d55 Fix vDSO parsing on powerpc64. Dan Gohman 2022-04-14 21:27:04 -07:00
  • 94898e10c0 Update the virtual-environment versions in the CI scripts. Dan Gohman 2022-04-13 21:19:28 -07:00
  • bd5b596020 Add an "on workflow_dispatch" rule to the main.yml CI. Dan Gohman 2022-04-13 07:45:47 -07:00
  • 317f715ac1 Add an s390x-unknown-linux-gnu check to CI. Dan Gohman 2022-04-13 07:00:06 -07:00
  • 3e727c5d60 Configure qemu to set the nsec fields in fstat on s390x. Dan Gohman 2022-04-13 06:58:47 -07:00
  • f2fe80a1cd Fix another place in the test_priorities test. Dan Gohman 2022-04-12 20:16:40 -07:00
  • 8140782d88 Fix compilation on Rust 1.48. Dan Gohman 2022-04-12 19:46:06 -07:00
  • f361dabc4f Implement From<io::OwnedFd> for fd::OwnedFd. Dan Gohman 2022-04-12 10:54:30 -07:00
  • 422ebf5152 Use doc(cfg(...)) on the procfs functions. Dan Gohman 2022-04-12 08:54:31 -07:00
  • fa3e83d70b Fix doc links. Dan Gohman 2022-04-12 08:41:45 -07:00
  • a545ab1dd8 Preserve strict-provenance in the libc backend's linux_execfn function. Dan Gohman 2022-04-12 08:00:35 -07:00
  • 5dab25141d Add CI testing for s390x-linux. Dan Gohman 2022-04-12 07:44:28 -07:00
  • b276eab4b6 Miscellaneous fixes. Dan Gohman 2022-04-12 07:38:16 -07:00
  • d5570898b9 Make check_vdso_base call madvise after checking pointer validity. Dan Gohman 2022-04-10 19:32:05 -07:00
  • 8f9a899bc2 Use c_uint rather than bool in getsockopt calls. Dan Gohman 2022-04-12 19:10:24 -07:00
  • 930e1cc00e Implement utimensat and futimens on macOS 10.12 and earlier. Dan Gohman 2022-04-10 19:07:27 -07:00
  • 3bf8c71ac1 Refactoring in preparation for introducing feature flags (#272) Dan Gohman 2022-04-10 20:53:44 -07:00
  • 49b414087b Fix a race condition in the timerfd test Dan Gohman 2022-04-08 07:06:34 -07:00
  • 70e8f76889 tests/openat2: Use O_CLOEXEC Colin Walters 2022-04-05 12:12:05 -04:00
  • f06246191f Fix a y2038 bug in statat on 32-bit platforms. Dan Gohman 2022-04-07 11:55:53 -07:00
  • 914d78e238 Fall back to libc::syscall for openat if needed Colin Walters 2022-04-01 08:45:09 -04:00
  • 3bc6ada761 Remove windows-2016 from CI. Dan Gohman 2022-04-04 14:56:24 -07:00
  • ef5b071e25 (cargo-release) version 0.34.2 Dan Gohman 2022-04-04 14:25:07 -07:00
  • 76bb84bd42 Implement the Linux timerfd APIs. Dan Gohman 2022-04-04 13:49:12 -07:00
  • e4565b5883 Use the libc backend when running under Miri. Dan Gohman 2022-03-31 08:10:07 -07:00
  • 4cd04113cc Mention provenance in the README.md. Dan Gohman 2022-03-31 13:13:45 -07:00
  • 8e1d553539 Preserve provenance in weak! and related macros. Dan Gohman 2022-03-31 13:13:40 -07:00
  • 729364dab1 Preserve provenance in the vDSO parsing code too. Dan Gohman 2022-03-31 13:13:38 -07:00
  • 16e949cfcf Preserve provenance in the vDSO wrapper code. Dan Gohman 2022-03-31 13:13:34 -07:00
  • a3b9a1c519 Preserve provenance in the auxv parsing code. Dan Gohman 2022-03-30 17:05:58 -07:00
  • b1ddc84659 Preserve pointer provenance in system call arguments and return values. Dan Gohman 2022-04-01 07:40:22 -07:00
  • 88dd2f0a2c Enable memfd support on FreeBSD. Dan Gohman 2022-03-29 08:49:28 -07:00
  • 8881238e52 (cargo-release) version 0.34.1 Dan Gohman 2022-03-24 18:41:17 -07:00
  • 71dcb6771c Define SealFlags::FUTURE_WRITE on Android too. Dan Gohman 2022-03-24 17:09:19 -07:00
  • 5519fda6af Support preadv64 and pwritev64 on Android versions which lack them. Dan Gohman 2022-03-23 15:41:13 -07:00
  • 16ab12ad59 Export AsSocket, FromSocket, and IntoSocket on Windows. Dan Gohman 2022-03-18 08:46:33 -07:00
  • fa5b3cba93 Revert the dev-version bump. Dan Gohman 2022-03-15 21:56:39 -07:00
  • d2d8d670e1 (cargo-release) start next development iteration 0.34.1-alpha.0 Dan Gohman 2022-03-15 19:09:18 -07:00
  • daf05ef31d (cargo-release) version 0.34.0 Dan Gohman 2022-03-15 19:09:08 -07:00
  • aad8d2ad06 Update to io-lifetime 0.6.0. Dan Gohman 2022-03-14 11:19:17 -07:00
  • e43af3028e Rename dup2_with to dup3. Dan Gohman 2022-03-14 11:26:33 -07:00
  • be51dd95c3 (cargo-release) start next development iteration 0.33.5-alpha.0 Dan Gohman 2022-03-08 12:58:43 -08:00
  • 671f05907b (cargo-release) version 0.33.4 Dan Gohman 2022-03-08 12:58:31 -08:00
  • 40a77b783b rustfmt Dan Gohman 2022-03-08 09:22:06 -08:00
  • 233710c3bc Update to serial_test 0.6. Dan Gohman 2022-03-08 09:20:45 -08:00
  • 07264e399e Add convenience predicates to Pid, Gid, and Uid. Dan Gohman 2022-01-17 14:06:37 -08:00
  • f3be1866f8 Add a clock_ticks_per_second function. Dan Gohman 2022-03-07 07:02:55 -08:00
  • fb844ed676 Fixes for --cfg=io_lifetimes_use_std mode Dan Gohman 2022-03-03 12:02:55 -08:00
  • 709aa551fc Implement Debug for Dir. Dan Gohman 2022-03-04 09:00:38 -08:00
  • 97086d71b6 Fix dup2 and dup2_with inconsistencies. (#245) Dan Gohman 2022-03-03 16:57:38 -08:00
  • c319c725ef Use decode_void for syscalls which are expected to always return 0. Dan Gohman 2022-01-27 18:30:31 -08:00
  • e9d1833d42 Add a tier-3 cross check for a uwp windows target. Dan Gohman 2022-03-01 05:39:22 -08:00
  • f3645deaa1 Avoid depending on nightly-only features on uwp windows targets. Dan Gohman 2022-03-01 05:39:01 -08:00
  • 254ff526a1 Fix a missing import on Windows. Dan Gohman 2022-03-01 05:38:47 -08:00
  • c3af0d6d77 Fix an unused variable warning. Dan Gohman 2022-03-01 05:38:34 -08:00
  • 6de7c7d9b5 Enable the "handleapi" feature on non-uwp windows targets. Dan Gohman 2022-03-01 05:37:01 -08:00
  • 7d2b9cf54d Update the feature detection for inline asm to work on stable Rust. Dan Gohman 2022-02-28 13:53:50 -08:00
  • 1b32b44ec6 Fix miscellaneous clippy lints. Dan Gohman 2022-02-28 09:07:45 -08:00
  • 5cda795470 Fix the get/set-timeout getsockopt/getsockopt calls. Dan Gohman 2022-02-28 09:03:31 -08:00