Re:Object-oriented design patterns in C and kernel development
by kazinator on Wednesday August 27, 2025 @10:23PM
(#45047634)
That's just it; in the POSIX world, the library functions like read and write are just a facade. They call something in a kernel, and that something examines the file descriptor and dispatches a lower level function. It's possible that that is literally unimplemented: as in a null function pointer in some structure. The facade converts that to a -1 return with an approprriate `errno` like EOPNOTSUPP (operation not supported).
[ Parent
| on HN ]
There are no comments on this comment yet.