posix

Tag

Cards List
#posix

Reading and writing are less symmetric than you (probably) think

Hacker News Top ↗ · 4d ago Cached

博客文章讨论计算中读写操作的不对称性,解释缓冲 I/O、块设备对齐以及错误处理如何打破 read/write 系统调用表面的对称性。

0 favorites 0 likes
#posix

Moxnox 1.0: NT-Like, POSIX-Compatible OS Running Atop Btrfs

Hacker News Top ↗ · 4d ago Cached

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.

0 favorites 0 likes
#posix

POSIX wordexp(3) is dangerous

Lobsters Hottest ↗ · 6d ago Cached

一篇 TIL 博客指出 POSIX 的 wordexp(3) 默认启用命令替换,即使传入 WRDE_NOCMD,musl 和 macOS 的 libc 实现也可能被绕过,建议不要在不可信输入上使用它。

0 favorites 0 likes
#posix

yet another place where a linux man page is inaccurate

Lobsters Hottest ↗ · 2026-10-14 Cached

博主更正了此前关于 glibc 中 initstate() 不遵循 POSIX 错误返回规范的说法:该 bug 早在 2013 年就已修复,只是 initstate(3) man page 至今未更新,且页面还遗漏了 POSIX 实际上并未为该函数定义任何错误条件这一关键信息。

0 favorites 0 likes
#posix

your c is not standard c

Lobsters Hottest ↗ · 2026-10-12 Cached

一篇技术博客文章,列举了标准 C 与 gcc/clang + glibc/musl 实际行为之间的多种不兼容之处,包括 asm 关键字、FLT_ROUNDS、标准 pragma 未实现以及 initstate 错误处理等问题。

0 favorites 0 likes
#posix

oh, apparently it's not possible to portably check for string-to-float conversion errors in standard c

Lobsters Hottest ↗ · 2026-10-10 Cached

博客文章探讨了标准 C 中 string-to-float 转换函数(strtod 等)无法可移植地检测转换错误的问题:标准依赖 math_errhandling,而 POSIX 总是要求设置 errno,二者兼容性存疑。

0 favorites 0 likes
#posix

Brut, the Brutal Router for Unix Tools

Lobsters Hottest ↗ · 2026-10-06 Cached

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.

0 favorites 0 likes
#posix

cp: -r or -R?

Hacker News Top ↗ · 2026-09-30 Cached

一篇探讨 `cp` 命令中 `-r` 与 `-R` 选项历史差异的博文:两者在现代 GNU coreutils 中已无区别(2002 年合并),但 OpenBSD/NetBSD 仍保留行为差异,POSIX 推荐使用更一致的 `-R`。

0 favorites 0 likes
#posix

Unix File and Directory Permissions and Modes (2018)

Lobsters Hottest ↗ · 2026-09-29 Cached

This article explains Unix file and directory permissions, detailing user classes, permission types, and their usage in POSIX systems.

0 favorites 0 likes
#posix

GNU Hurd News 2026-Q2

Hacker News Top ↗ · 2026-08-02 Cached

GNU Hurd's 2026 Q2 quarterly report highlights progress on 9pfs write support, AArch64 kernel patches, POSIX msync validation, and various bug fixes.

0 favorites 0 likes
#posix

what the double-fork?

Lobsters Hottest ↗ · 2026-07-31 Cached

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.

0 favorites 0 likes
#posix

A shell colon does nothing. Use it anyway

Lobsters Hottest ↗ · 2026-07-25 Cached

Explains the shell colon (null command) and its practical uses like argument checking, setting defaults, and file operations.

0 favorites 0 likes
#posix

The full stack of terminals explained

Hacker News Top ↗ · 2026-07-05 Cached

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.

0 favorites 0 likes
#posix

Show HN: ZeroFS – A log-structured filesystem for S3

Hacker News Top ↗ · 2026-07-02 Cached

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.

0 favorites 0 likes
#posix

POSIX Is Not a Shell

Hacker News Top ↗ · 2026-06-28 Cached

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.

0 favorites 0 likes
#posix

Spork: A posix_spawn you can use as a fork

Lobsters Hottest ↗ · 2026-05-19

Spork is a C library that provides a posix_spawn-based alternative to fork, offering better performance and safety for process creation.

0 favorites 0 likes
← Back to home

Submit Feedback