INF: Write Function Will Not Work Correctly with SS!=DS

ID Number: Q32871

5.00 5.10 6.00 6.00a 6.00ax | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

In Microsoft C versions 5.1, 6.0, 6.0a, and 6.0ax, the write()

function will not work correctly in SS!= DS in text mode. It should

work properly in binary mode. In text mode, write() builds a buffer on

the stack to do LF to CR/LF translation. It makes a call to

stackavail() to make sure it does not overflow the stack; this call is

what prevents it from working with SS!=DS.

In Microsoft C 5.1, only the functions in the OS/2 multithreaded

run-time library and the OS/2 DLL run-time library are designed to

support SS!= DS. In Microsoft C 6.0, all compact and large memory model

run-times support SS!= DS in addition to the OS/2 multithreaded

run-time and the OS/2 DLL run-time.

Additional reference words: 5.10 6.00 6.00a 6.00ax