Skip to content

Comment on Opening /proc/self/fd/1 is not the same as dup(1)

Comments

Unix processes have file descriptors which point to file descriptions (`struct file` in Linux).

Also known as file handles referencing file objects (on Windows). Unix terminology is unnecessarily confusing in this place IMHO.

On the subject of the article itself: why was this change introduced? To give kernel support for reopen(3) since dup(3) already exists?

I propose to reintroduce the term FCB (File Control Block ) to help clear things up :)

Unix terminology is older. FD is a kernel-user interface based on integer map. HANDLE is a typedef'd pointer. Apples vs oranges.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.