╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ generate_linux_syscalls.zig ──────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
249 250 try Io.Writer.flush(stdout); 251 } 252 253 fn usage(w: *std.Io.Writer, arg0: []const u8) std.Io.Writer.Error!void { 254 try w.print( 255 \\Usage: {s} /path/to/linux 256 \\Alternative Usage: zig run /path/to/git/zig/tools/generate_linux_syscalls.zig -- /path/to/linux 257 \\ 258 \\Generates the list of Linux syscalls for each supported cpu arch, using the Linux development tree. 259 \\Prints to stdout Zig code which you can use to replace the file lib/std/os/linux/syscalls.zig. 260 \\ 261 , .{arg0}); 262 } 263