April 2004
Intermediate to advanced
736 pages
16h 19m
English
I’ve been complaining throughout this book that the standard UNIX API suffers from inconsistent error handling, confusing naming, and redundancies. As I suggested in Section 1.4.3, C++ exceptions provide a much better way to handle errors. As long as I’m going to do that, I might as well rename the functions and organize them into classes, mostly following the categories in Appendix D.
My attempt at a C++ wrapper is called Ux. It was designed to meet these goals:
1. 100% uniform error handling for all functions
2. 100% functionality for the functions that are wrapped
3. Organization into objects that reflect the UNIX architecture
4. Elimination of redundant, obsolete, or defective functions (e.g., ...
Read now
Unlock full access