INF:Predefined OS/2 File Handles Are Stdin, Stdout, and Stderr

ID Number: Q29559

5.10 6.00 6.00a

OS/2

Summary:

In Microsoft C versions 5.0, 5.1, 6.0, 6.0a, and 6.0ax, the only files

predefined in OS/2 are the following:

stdin, stdout, and stderr

By default, these files have the integer file handles 0, 1, and 2.

Under OS/2, the file handles stdprn and stdaux are not predefined as

they are under MS-DOS. Problems may occur when using the compiler to

create programs that attempt to write to stdaux and stdprn in OS/2

protected mode.

References to stdprn and stdaux files are not detected by the compiler

because it works in dual mode under both OS/2 and MS-DOS. Writing to

stdaux or stdprn fails under OS/2. No compiler errors, linker errors,

or warnings are generated in these cases.

Additional reference words: 5.10 6.00 6.00a