From 26777d98fe46d81b74ef304c1d1fd5975d7e0a0b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 31 Jul 2023 11:23:49 -0700 Subject: [PATCH] Revert "std: adding freebsd's elf_aux_info api" This reverts commit 83970b6d916a1526869aba2680d5017d495df12a. --- lib/std/c/freebsd.zig | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index a03c5a3b70..f3073a4ad9 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -1658,45 +1658,6 @@ pub const AT = struct { pub const REMOVEDIR = 0x0800; /// Fail if not under dirfd pub const BENEATH = 0x1000; - /// elf_common constants - pub const NULL = 0; - pub const IGNORE = 1; - pub const EXECFD = 2; - pub const PHDR = 3; - pub const PHENT = 4; - pub const PHNUM = 5; - pub const PAGESZ = 6; - pub const BASE = 7; - pub const FLAGS = 8; - pub const ENTRY = 9; - pub const NOTELF = 10; - pub const UID = 11; - pub const EUID = 12; - pub const GID = 13; - pub const EGID = 14; - pub const EXECPATH = 15; - pub const CANARY = 16; - pub const CANARYLEN = 17; - pub const OSRELDATE = 18; - pub const NCPUS = 19; - pub const PAGESIZES = 20; - pub const PAGESIZESLEN = 21; - pub const TIMEKEEP = 22; - pub const STACKPROT = 23; - pub const EHDRFLAGS = 24; - pub const HWCAP = 25; - pub const HWCAP2 = 26; - pub const BSDFLAGS = 27; - pub const ARGC = 28; - pub const ARGV = 29; - pub const ENVC = 30; - pub const ENVV = 31; - pub const PS_STRINGS = 32; - pub const FXRNG = 33; - pub const KPRLOAD = 34; - pub const USRSTACKBASE = 35; - pub const USRSTACKLIM = 36; - pub const COUNT = 37; }; pub const addrinfo = extern struct { @@ -2190,5 +2151,3 @@ pub const shm_largeconf = extern struct { }; pub extern "c" fn shm_create_largepage(path: [*:0]const u8, flags: c_int, psind: c_int, alloc_policy: c_int, mode: mode_t) c_int; - -pub extern "c" fn elf_aux_info(aux: c_int, buf: ?*anyopaque, buflen: c_int) c_int;