home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / errno.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  886 b   |  38 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. #ifndef _ERRNO_H
  12. #define _ERRNO_H
  13. #ident    "@(#)sgs-head:common/head/errno.h    1.4.4.3"
  14.  
  15. #include <sys/errno.h>
  16.  
  17. #ifdef _REENTRANT
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. extern int    *__thr_errno(void);
  24.  
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28.  
  29. #define errno    (*__thr_errno())
  30.  
  31. #else /*!_REENTRANT*/
  32.  
  33. extern int    errno;
  34.  
  35. #endif /*_REENTRANT*/
  36.  
  37. #endif /*_ERRNO_H*/
  38.