DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Interprocess communication using UNIX domain sockets

Error handling in programming (UNIX domain)

Generally, each system service maps its error conditions to the generic error codes defined by the operating system. However, some errors have been added especially for SCO TCP/IP.

Check for error returns after every system call. Most calls have one or more associated error values, which are described in the manual page for the call. An error condition is indicated by an otherwise impossible return value This is almost always -1. An error number is made available in the external variable errno. The errno variable is set only when an error incurred and is not cleared on successful calls. Consequently, it should be tested only after an error has been indicated. Use perror(S) to print error messages.


Next topic: Socket error indications (UNIX domain)
Previous topic: Manipulating byte strings (UNIX domain)

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003