authorgravatar for devnexen@gmail.comDavid Carlier <devnexen@gmail.com> 2023-04-20 22:06:44+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-21 11:42:49-07:00
log83970b6d916a1526869aba2680d5017d495df12a
tree5117ee33c8daff9a3dde038ae32370de2a79e44b
parenta774f9334473822fd7c6c828dd3fb873788b2f72

std: adding freebsd's elf_aux_info api


1 files changed, 41 insertions(+), 0 deletions(-)

lib/std/c/freebsd.zig+41
......@@ -1658,6 +1658,45 @@ pub const AT = struct {
16581658 pub const REMOVEDIR = 0x0800;
16591659 /// Fail if not under dirfd
16601660 pub const BENEATH = 0x1000;
1661 /// elf_common constants
1662 pub const NULL = 0;
1663 pub const IGNORE = 1;
1664 pub const EXECFD = 2;
1665 pub const PHDR = 3;
1666 pub const PHENT = 4;
1667 pub const PHNUM = 5;
1668 pub const PAGESZ = 6;
1669 pub const BASE = 7;
1670 pub const FLAGS = 8;
1671 pub const ENTRY = 9;
1672 pub const NOTELF = 10;
1673 pub const UID = 11;
1674 pub const EUID = 12;
1675 pub const GID = 13;
1676 pub const EGID = 14;
1677 pub const EXECPATH = 15;
1678 pub const CANARY = 16;
1679 pub const CANARYLEN = 17;
1680 pub const OSRELDATE = 18;
1681 pub const NCPUS = 19;
1682 pub const PAGESIZES = 20;
1683 pub const PAGESIZESLEN = 21;
1684 pub const TIMEKEEP = 22;
1685 pub const STACKPROT = 23;
1686 pub const EHDRFLAGS = 24;
1687 pub const HWCAP = 25;
1688 pub const HWCAP2 = 26;
1689 pub const BSDFLAGS = 27;
1690 pub const ARGC = 28;
1691 pub const ARGV = 29;
1692 pub const ENVC = 30;
1693 pub const ENVV = 31;
1694 pub const PS_STRINGS = 32;
1695 pub const FXRNG = 33;
1696 pub const KPRLOAD = 34;
1697 pub const USRSTACKBASE = 35;
1698 pub const USRSTACKLIM = 36;
1699 pub const COUNT = 37;
16611700};
16621701
16631702pub const addrinfo = extern struct {
......@@ -2151,3 +2190,5 @@ pub const shm_largeconf = extern struct {
21512190};
21522191
21532192pub 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;
2193
2194pub extern "c" fn elf_aux_info(aux: c_int, buf: ?*anyopaque, buflen: c_int) c_int;