Skip to content

godsarmy/zig-linux-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZIG Linux Cookbook

Overview

Examples of zig code to demonstrate how to use typical linux system lib by zig namespace std.os.linux

Examples

File Related Call
clock_gettime.zig clock_gettime
dup2.zig dup2
execve.zig execve
fork_waitpid.zig fork waitpid
getcwd.zig getcwd chdir
getdents64 getdents64
getgroups.zig getgroups
getrandom.zig getrandom
kill.zig kill
lstat.zig lstat
mmap.zig mmap munmap
open_errno.zig open
pipe.zig pipe read write
ptrace.zig ptrace
symlink.zig symlink readlink
ushare.zig getuid unshare
uname.zig uname

Usage

zig build

You will have binaries in zig-out/bin.

  • Build & Run all
zig build run-all

Other awesome zig learning materials

About

Cookbook examples for zig to call linux system call

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages