3 ms·
> For example, when they are composed by multiple parts and give the filename for further processing via IPC Of course, the proper way to do this in POSIX is t
by zeveb 11y ago
> For example, when they are composed by multiple parts and give the filename for further processing via IPC
Of course, the proper way to do this in POSIX is to pass the filehandle.
POSIX is actually a pretty cool standard; the sad thing is that one doesn't often see good examples of its capabilities being used to their full extent.
For this, I primarily blame C: it's so verbose and has such limited facilities for abstraction that it's often difficult to see the forest for the trees. Combine that with a generation of folks whose knowledge of C dates back to a college course or four, in which efficient POSIX usage may not have been a concern, and one finds good, easy-to-read examples of POSIX harder to find than they really should be.
- pjmlp 11y agoUnfortunately POSIX also shares the same implementation defined behaviour of C. I had my share of headaches when porting across UNIX systems. Also POSIX is now stagnated around support for CLI and daemon applications. There is hardly any updates for new hardware or server architectures. Actually, having used C compilers that only knew K&R, I would say POSIX is the part that should have been part of ANSI C, but they didn't want a large runtime tied to the language.