From e1fdd21f0e1d7aaa2a18af0fe35c921d93089b41 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 31 Jul 2023 10:57:35 -0700 Subject: [PATCH] Revert "std.c: add rfork for freebsd" This reverts commit 2952fb97588fa2eb711bf84b479e959b60542192. --- lib/std/c/freebsd.zig | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index 8c6df5367d..b44a72fafc 100644 --- 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;