hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

start+libc.ha (221B)


      1 // License: MPL-2.0
      2 // (c) 2022 Alexey Yerin <yyp@disroot.org>
      3 use rt;
      4 use format::elf;
      5 
      6 @init fn init_linux() void = {
      7 	let i = 0;
      8 	for (rt::envp[i] != null) {
      9 		i += 1;
     10 	};
     11 	auxv = &rt::envp[i + 1]: *[*]elf::auxv64;
     12 };