zig/std/c/linux.zig

18 lines
624 B
Zig
Raw Normal View History

2019-05-05 18:14:53 +08:00
const linux = @import("../os/linux.zig");
pub use @import("../os/linux/errno.zig");
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;
2018-04-29 11:30:13 +08:00
pub const pthread_attr_t = extern struct {
2018-04-29 11:30:13 +08:00
__size: [56]u8,
__align: c_long,
};
2018-08-25 15:07:37 +08:00
/// See std.elf for constants for this
pub extern fn getauxval(__type: c_ulong) c_ulong;
2019-04-25 02:53:46 +08:00
2019-05-05 18:14:53 +08:00
pub const dl_iterate_phdr_callback = extern fn (info: *linux.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;