rust/library/std/src/os
Matthias Krüger 2730bebbf8
Rollup merge of #142391 - LevitatingBusinessMan:setsid, r=workingjubilee
rust: library: Add `setsid` method to `CommandExt` trait

Add a setsid method to the CommandExt trait so that callers can create a process in a new session and process group whilst still using the POSIX spawn fast path.

Tracking issue: rust-lang/rust#105376

ACP: https://github.com/rust-lang/libs-team/issues/184

This PR was previously submitted by ``@HarveyHunt`` (whom I marked as Co-Author in the commit message) in rust-lang/rust#105377. However that PR went stale.

I applied the [suggestion](https://github.com/rust-lang/rust/pull/105377/files/231d19fcbfe155b2e85116865adae4253380ff1f#r1893457943) to change the function signature to `fn setsid(&mut self, setsid: bool) -> &mut Command`.
2025-07-11 07:35:17 +02:00
..
aix Reformat use declarations. 2024-07-29 08:26:52 +10:00
android Update version placeholders 2025-07-01 10:54:33 -07:00
cygwin Readd os::cygwin::raw as pub(crate) 2025-03-10 21:23:32 +08:00
darwin replace placeholder version 2024-11-27 12:10:21 +00:00
dragonfly Reformat use declarations. 2024-07-29 08:26:52 +10:00
emscripten Avoid use of LFS64 symbols on Emscripten 2025-01-01 13:21:19 +01:00
espidf Reformat use declarations. 2024-07-29 08:26:52 +10:00
fd replace version placeholder 2025-04-09 12:29:59 +01:00
fortanix_sgx Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
freebsd Reformat use declarations. 2024-07-29 08:26:52 +10:00
fuchsia Add definitions for riscv64gc-unknown-fuchsia 2023-04-25 16:42:59 -07:00
haiku Reformat use declarations. 2024-07-29 08:26:52 +10:00
hermit std: move network code into sys 2025-02-02 19:12:06 +01:00
horizon Fix warnings when checking armv6k-nintendo-3ds 2024-07-21 20:12:54 -04:00
hurd Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 2024-12-11 01:02:10 +01:00
illumos std::net: adding unix_socket_exclbind feature for solaris/illumos. 2025-06-10 19:44:45 +01:00
ios Make std::os::darwin public 2024-08-13 23:50:33 +02:00
l4re Reformat use declarations. 2024-07-29 08:26:52 +10:00
linux Update version placeholders 2025-07-01 10:54:33 -07:00
macos Make std::os::darwin public 2024-08-13 23:50:33 +02:00
net Update version placeholders 2025-07-01 10:54:33 -07:00
netbsd Reformat use declarations. 2024-07-29 08:26:52 +10:00
nto Update library/std/src/os/nto/mod.rs 2023-03-01 06:42:40 +01:00
nuttx Fix a copy-paste issue in the NuttX raw type definition 2024-11-14 14:50:30 +08:00
openbsd Reformat use declarations. 2024-07-29 08:26:52 +10:00
raw Remove Windows dependency on libc 2024-05-20 11:13:31 -04:00
redox Reformat use declarations. 2024-07-29 08:26:52 +10:00
rtems Port std library to RTEMS 2024-09-03 09:19:29 +02:00
solaris std::net: adding unix_socket_exclbind feature for solaris/illumos. 2025-06-10 19:44:45 +01:00
solid Add safe new to NotAllOnes 2025-02-14 12:00:13 +00:00
trusty Remove unused file 2025-03-10 14:19:27 -07:00
uefi use generic Atomic type where possible 2025-04-27 02:18:08 +03:00
unix Rollup merge of #142391 - LevitatingBusinessMan:setsid, r=workingjubilee 2025-07-11 07:35:17 +02:00
vita Add forbid(unsafe_op_in_unsafe_fn) 2024-07-28 21:10:59 +03:00
vxworks Forbid unsafe_op_in_unsafe_fn in vxworks specific os and sys files 2024-08-03 08:00:39 +05:30
wasi Remove stable attribute from wasi fs (read_exact|write_all)_at 2025-05-10 23:55:51 +00:00
wasip2 WASI fixing unsafe_op_in_unsafe_fn for std::{os, sys} 2024-08-05 09:48:26 +01:00
windows wire up startupinfo methods 2025-05-14 19:00:56 +02:00
xous use generic Atomic type where possible 2025-04-27 02:18:08 +03:00
mod.rs Rollup merge of #137621 - Berrysoft:cygwin-std, r=joboet 2025-03-17 05:47:49 -04:00