zig-system-calls

Official

Use bun.sys for robust Zig system calls.

Authorzhcndoc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Guides using bun.sys for system calls and file I/O in Zig. Use when implementing file operations instead of std.fs or std.posix.

Core Features & Use Cases

  • bun.sys.File wrapper for common file operations with cross-platform error handling.
  • bun.sys low-level functions for opening, reading, writing, and stat-like operations.
  • Patterns for handling Maybe(T) and errno-based errors, with automatic EINTR retry where supported.

Quick Start

Use bun.sys to implement a small Zig function that opens a file for writing and writes a byte slice using bun.sys.File, including basic error handling.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: zig-system-calls
Download link: https://github.com/zhcndoc/bun/archive/main.zip#zig-system-calls

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.