commit e1fdd21f0e1d7aaa2a18af0fe35c921d93089b41 (tree)
parent a208c59a25e6d6b30f4a9bda4d562cb205e8a6b9
Author: Andrew Kelley <andrew@ziglang.org>
Date: Mon, 31 Jul 2023 10:57:35 -0700
Revert "std.c: add rfork for freebsd"
This reverts commit 2952fb97588fa2eb711bf84b479e959b60542192.
Diffstat:
1 file changed, 0 insertions(+), 38 deletions(-)
diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig
@@ -2666,41 +2666,3 @@ pub fn IOW(op: u8, nr: u8, comptime IT: type) u32 {
pub fn IOWR(op: u8, nr: u8, comptime IT: type) u32 {
return ioImpl(ioctl_cmd.INOUT, op, nr, @sizeOf(IT));
}
-
-pub const RF = struct {
- pub const NAMEG = 1 << 0;
- pub const ENVG = 1 << 1;
- /// copy file descriptors table
- pub const FDG = 1 << 2;
- pub const NOTEG = 1 << 3;
- /// creates a new process
- pub const PROC = 1 << 4;
- /// shares address space
- pub const MEM = 1 << 5;
- /// detaches the child
- pub const NOWAIT = 1 << 6;
- pub const CNAMEG = 1 << 10;
- pub const CENVG = 1 << 11;
- /// distinct file descriptor table
- pub const CFDG = 1 << 12;
- /// thread support
- pub const THREAD = 1 << 13;
- /// shares signal handlers
- pub const SIGSHARE = 1 << 14;
- /// emits SIGUSR1 on exit
- pub const LINUXTHPN = 1 << 16;
- /// child in stopped state
- pub const STOPPED = 1 << 17;
- /// use high pid id
- pub const HIGHPID = 1 << 18;
- /// selects signal flag for parent notification
- pub const SIGSZMB = 1 << 19;
- pub fn SIGNUM(f: u32) u32 {
- return f >> 20;
- }
- pub fn SIGFLAGS(f: u32) u32 {
- return f << 20;
- }
-};
-
-pub extern "c" fn rfork(flags: c_int) c_int;