This appendix lists the error messages produced by the Watcom C/C++ runtime library. These messages can only appear during the execution of an application built with one of the C runtime libraries.
This appendix includes the following sections:
The compiler generates a reference to the variable _fltused_ whenever you pass a floating-point value to a function. During the linking phase, the extra floating-point formatting routines will also be brought into your application when _fltused_ is referenced. Otherwise, you only get the non floating-point formatting routines.
To find the problem, you must link your application with debugging information and use the Watcom Debugger to monitor its execution:
The following errors can be generated by the C runtime library. These error codes correspond to the error types defined in errno.h.
The specified file or directory can't be found.
The argument list passed to the spawn...(), exec...() or system() function exceeds the limit imposed by QNX, or the environment information exceeds 64K.
The executable file has an invalid format.
The file descriptor isn't a valid file descriptor value, or it doesn't correspond to an open file.
There wasn't enough memory available to perform the specified request.
You don't have the required (or correct) permissions to access a file.
An attempt was made to create a file with the O_EXCL (exclusive) flag when the file already exists.
An attempt was made to rename a file to a different device.
An invalid value was specified for one of the arguments to a function.
All the FILE structures are in use, so no more files can be opened.
There are no more file descriptors available, so no more files can be opened.
No more space is left for writing on the device, which usually means that the disk is full.
An argument to a math function isn't in the domain of the function.
The result of a math function couldn't be represented (too small, or too large).
A resource deadlock would occur with regards to locked files.
The following errors can be generated by the math functions in the C runtime library. These error codes correspond to the exception types defined in math.h, and returned by the matherr() function when a math error occurs.
An argument to the function is outside the domain of the function.
The function result is too large.
A partial loss of significance occurred.
An argument to the function has a bad value (for example, log(0.0)).
A total loss of significance occurred. An argument to a function was too large to produce a meaningful result.
The result is too small to be represented.