aboutsummaryrefslogtreecommitdiff
path: root/std/c/linux.zig
blob: 388d8edab822413592dac3934144f03c60147c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const std = @import("../std.zig");
use std.c;

pub extern "c" fn getrandom(buf_ptr: [*]u8, buf_len: usize, flags: c_uint) c_int;
extern "c" fn __errno_location() *c_int;
pub const _errno = __errno_location;

/// See std.elf for constants for this
pub extern fn getauxval(__type: c_ulong) c_ulong;

pub const dl_iterate_phdr_callback = extern fn (info: *dl_phdr_info, size: usize, data: ?*c_void) c_int;
pub extern fn dl_iterate_phdr(callback: dl_iterate_phdr_callback, data: ?*c_void) c_int;