home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
ms95
/
disk22
/
dir08
/
f012740.re_
/
f012740.re
Wrap
Text File
|
1996-04-02
|
3KB
|
115 lines
/*----------------------------------------------------------------------+
| |
| Copyright (1992) Bentley Systems, Inc., All rights reserved. |
| |
| "MicroStation", "MDL", and "MicroCSL" are trademarks of Bentley |
| Systems, Inc. |
| |
| Limited permission is hereby granted to reproduce and modify this |
| copyrighted material provided that the resulting code is used only |
| in conjunction with Bentley Systems products under the terms of the |
| license agreement provided therein, and that this notice is retained |
| in its entirety in any such reproduction or modification. |
| |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
| |
| Current Revision: |
| $Workfile: errno.h $
| $Revision: 6.5 $ $Date: 02 Jun 1995 20:42:18 $
| |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
| |
| No part of MicroStation other than system libraries and |
| standard C libraries linked in with MicroStation |
| ever store a value in errno. This allows MDL programs |
| to determine the errno value set by the standard libraries. |
| |
| MicroStation uses the built-in variable mdlErrno to |
| report errors. The values for mdlErrno are all defined |
| in mdlerrs.h. |
| |
| Typically, when an MDL program calls a standard C function |
| the value in errno is relevant. When an MDL program calls |
| any other built-in function the value in mdlErrno is |
| relevant. |
| |
+----------------------------------------------------------------------*/
#if !defined (mdl)
# error This file is intended for MDL only
#endif
#if !defined (__errnoH__)
# define __errnoH__
#if defined (pm386)
# define __errno_implemented__
extern int errno;
extern int _doserrno;
# define EDOM 33
# define ERANGE 34
#elif defined (hp700) || defined (clipper) || defined (sparc) || \
defined (macintosh) || defined (vax) || defined (rs6000) || \
defined (sgimips) || defined(SolarisX86)
# define __errno_implemented__
extern int errno;
# define EDOM 33
# define ERANGE 34
#elif defined (os2)
# define __errno_implemented__
#if defined (__IBMC__)
extern int errno;
# define EDOM 1
# define ERANGE 2
#elif defined (__HIGHC__)
extern int errno;
# define EDOM 33
# define ERANGE 34
#elif defined (__WATCOMC__)
extern int *_errno(void);
# define errno (*_errno())
# define EDOM 13
# define ERANGE 14
#endif
#elif defined (winNT)
# define __errno_implemented__
extern int *_errno(void);
# define errno (*_errno())
# define EDOM 33
# define ERANGE 34
#endif
# if !defined (__errno_implemented__)
# error errno.h is not implemented for this platform
# endif
#endif