UNIX Error Reporting in the Standard C Library

Proper error detection and recovery is often ignored by UNIX developers. The lack of exceptions from the C language and the rudimentary error mechanisms from the standard C library certainly contribute to this. This article familiarizes you with the UNIX standard error reporting mechanism, the errno global variable. You’ll also learn about a couple of associated global variables ( sys_nerr and sys_errlist) and the standard functions that help you report errors to the user and (hopefully) encourages you to report and handle errors in a user-friendly way.

12 Comments

  1. 2006-09-08 4:20 am
    • 2006-09-08 4:57 pm
      • 2006-09-08 6:23 pm
    • 2006-09-08 5:14 pm
      • 2006-09-09 3:53 pm
  2. 2006-09-08 4:43 am
  3. 2006-09-08 7:29 am
    • 2006-09-08 9:46 pm
      • 2006-09-09 10:59 am
  4. 2006-09-08 9:02 am
    • 2006-09-08 1:08 pm
  5. 2006-09-08 1:15 pm