Tag
博客文章讨论计算中读写操作的不对称性,解释缓冲 I/O、块设备对齐以及错误处理如何打破 read/write 系统调用表面的对称性。
Moxnox 1.0 is an NT-like, POSIX-compatible hobby operating system that runs on btrfs, is written in ~130,000 lines of C++, supports amd64 and aarch64, and is capable of self-hosting.
一篇 TIL 博客指出 POSIX 的 wordexp(3) 默认启用命令替换,即使传入 WRDE_NOCMD,musl 和 macOS 的 libc 实现也可能被绕过,建议不要在不可信输入上使用它。
博主更正了此前关于 glibc 中 initstate() 不遵循 POSIX 错误返回规范的说法:该 bug 早在 2013 年就已修复,只是 initstate(3) man page 至今未更新,且页面还遗漏了 POSIX 实际上并未为该函数定义任何错误条件这一关键信息。
一篇技术博客文章,列举了标准 C 与 gcc/clang + glibc/musl 实际行为之间的多种不兼容之处,包括 asm 关键字、FLT_ROUNDS、标准 pragma 未实现以及 initstate 错误处理等问题。
博客文章探讨了标准 C 中 string-to-float 转换函数(strtod 等)无法可移植地检测转换错误的问题:标准依赖 math_errhandling,而 POSIX 总是要求设置 errno,二者兼容性存疑。
Brut is a ~120-line POSIX shell script that acts as a 'brutal router' for Unix command-line tools, dispatching subcommands to executables on PATH in the style of Git's CLI. It's a cornerstone of the Brutal Unix project, enabling portable, dependency-free CLI programs across Linux, BSD, macOS, and embedded systems.
一篇探讨 `cp` 命令中 `-r` 与 `-R` 选项历史差异的博文:两者在现代 GNU coreutils 中已无区别(2002 年合并),但 OpenBSD/NetBSD 仍保留行为差异,POSIX 推荐使用更一致的 `-R`。
This article explains Unix file and directory permissions, detailing user classes, permission types, and their usage in POSIX systems.
GNU Hurd's 2026 Q2 quarterly report highlights progress on 9pfs write support, AArch64 kernel patches, POSIX msync validation, and various bug fixes.
A devlog explaining the double-fork technique for creating robust POSIX daemons, covering forks, sessions, and controlling terminals in the context of building zmx in Zig.
Explains the shell colon (null command) and its practical uses like argument checking, setting defaults, and file operations.
A comprehensive guide explaining the differences and relationships between terminals, shells, TTYs, consoles, and related concepts like POSIX and ANSI escape codes, including hands-on TUI creation.
ZeroFS is a log-structured filesystem that serves S3-compatible buckets as POSIX filesystems over NFS and 9P, or as raw block devices, with compression, encryption, and local caching for fast reads. It passes extensive POSIX and stress test suites, including kernel builds and Jepsen failover testing.
This article argues that POSIX is a specification, not a program, and that shell implementations such as bash and dash behave differently even for basic commands like echo. It calls for testing across multiple shells rather than relying on the notion of 'POSIX compliance' for portability.
Spork is a C library that provides a posix_spawn-based alternative to fork, offering better performance and safety for process creation.