Search tips
  • System call error handling
    System call error handling System calls that fail to complete successfully almost always return a value of -1 to your program. (If you look through the system calls in Section 2, you will see that there are a few calls for which no return value is defined, but they are the exceptions.) In addition to the -1 returned to the program, the unsuccessful system call places an integer in an externally declared variable, errno. In a C program, you can determine the value in errno if your program contains the following statement: #include <errno.h>
    in Unix Tips with c call error handling programing system


programing from all users