B. Ux: A C++ Wrapper for Standard UNIX Functions

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., ...

Get Advanced UNIX Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.