oserror man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



OSERROR(3C)							   OSERROR(3C)

NAME
     oserror, setoserror, goserror - get/set system error

C SYNOPSIS
     #include <errno.h>

     int oserror(void);

     int setoserror(const int err);

     int goserror(void);

DESCRIPTION
     Most system calls and many system library functions set a global error
     value errno when they encounter an error.	For single threaded
     applications a global is sufficient.  For multi-threaded applications a
     global error value loses much of its meaning, since multiple threads may
     be updating the same value at the same time.  When a process turns
     multi-threaded (by calling sproc(2)) a per-thread location to store the
     error value is created.  sproc(2) and intro(2) have more information on
     error handling.

     These routines provide access to the error values.	 oserror returns the
     value in the global error location for single threaded applications and
     returns the value in the per-thread error location for multi-threaded
     applications.  This is equivalent to compiling the application with the
     feature test macro _SGI_MP_SOURCE defined and simply referencing errno.

     setoserror sets both the global error location and the per-thread error
     location for the calling thread.  This is primarily used by library
     routines.

     goserror always returns the value in the global error location.

     Possible errors are listed in errno.h.

RETURN VALUE
     oserror, goserror, and setoserror return the current system error.

SEE ALSO
     intro(2), sproc(2), perror(3C).

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net