14 lines
782 B
Zig
14 lines
782 B
Zig
//! DanOS's POSIX / C compatibility layer — `unistd`, `stdio`, and (later) the C
|
|
//! `errno` / `struct stat` / `extern "C"` surface. This is the *one* place POSIX and
|
|
//! C spellings are allowed to appear verbatim (see docs/coding-standards.md): a file
|
|
//! under library/posix/ *is* the foreign ABI, so it keeps the ABI's names. Everything
|
|
//! it touches on the danos side (the VFS protocol, the runtime) uses danos names,
|
|
//! which this layer translates to at the boundary.
|
|
//!
|
|
//! It is layered strictly *over* the runtime: it calls the runtime's IPC and heap,
|
|
//! never the kernel's system calls directly. danos-native applications use the
|
|
//! runtime; this exists so *POSIX* software can too.
|
|
|
|
pub const unistd = @import("unistd.zig");
|
|
pub const stdio = @import("stdio.zig");
|