diff options
author | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2021-10-19 23:51:55 -0500 |
---|---|---|
committer | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2021-12-21 16:20:48 -0600 |
commit | 2eb6e88406f84e6800c4aa26e64fc3b2be8442eb (patch) | |
tree | e4dd675b0297e041a8c791a03f5cfef7137360c5 /src | |
parent | 4f7119c61da6ab3a11d5e52b5e6cf7105a66efb9 (diff) | |
download | nix-2eb6e88406f84e6800c4aa26e64fc3b2be8442eb.zip |
DragonFly 6.0 added fexecve(2)
Diffstat (limited to 'src')
-rw-r--r-- | src/unistd.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index d48541f6..0e7f94e0 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -848,11 +848,9 @@ pub fn execvpe<SA: AsRef<CStr>, SE: AsRef<CStr>>(filename: &CStr, args: &[SA], e /// /// This function is similar to `execve`, except that the program to be executed /// is referenced as a file descriptor instead of a path. -// Note for NetBSD and OpenBSD: although rust-lang/libc includes it (under -// unix/bsd/netbsdlike/) fexecve is not currently implemented on NetBSD nor on -// OpenBSD. #[cfg(any(target_os = "android", target_os = "linux", + target_os = "dragonfly", target_os = "freebsd"))] #[inline] pub fn fexecve<SA: AsRef<CStr> ,SE: AsRef<CStr>>(fd: RawFd, args: &[SA], env: &[SE]) -> Result<Infallible> { |