Follow

@astrid
> no fread or fwrite, only mmap()
Multician spotted.

· · Web · 2 · 0 · 2
@niconiconi @astrid funny thing that I realized recently. Apparently fread() won't return partial reads, unlike read().

the mmap thing seems kinda painful though, I would rather use something like https://wiki.c2.com/?SendReceiveReply

@MisakaMikoto @astrid The mmap thing from Multics is an interesting idea nevertheless. If Unix is "everything is a file", then Multics is "everything (files, data, code) is a memory segment". Shared objects and dynamic linking naturally arises from such a design, baked into the heart of the architecture. Unlike Unix, which feels more like an optimization. multicians.org/multics-vm.html

@MisakaMikoto @niconiconi @astrid this is because C stdio exposes the same semantics everywhere over the raw syscall. on unix they're easily conflated because C stdio does little magic on unix, whereas it does on other platforms (newline conv on windows, text encoding on mainframes, etc.) except on unix, fread protects you from PC lusering

@libc @MisakaMikoto @astrid
> fread protects you from PC lusering
Ha! Best one-line summary ever.

Sign in to participate in the conversation
Cybrespace

cybrespace: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!