[comp.windows.ms.programmer] _lread doesn't respect O_TEXT

arf@world.std.com (alan feuer) (05/15/91)

_lread does not appear to behave like read in converting
CRLF to NL for files opened with the O_TEXT attribute.
Does anyone know if this is a feature or bug?

/alan feuer
arf@world.std.com

donc@microsoft.UUCP (Don CORBITT) (05/21/91)

In article <1991May15.000959.4668@world.std.com> arf@world.std.com (alan feuer) writes:
>_lread does not appear to behave like read in converting
>CRLF to NL for files opened with the O_TEXT attribute.
>Does anyone know if this is a feature or bug?

Neither.  It is a fact. :-)

(Actually, it is mapped directly to a call to MS-DOS int 21, ah=3f.  If
you want non-default behaviour, you can build it on top of this low-level
call.)  Note that it also doesn't set errno, nor return that value in
a register.  This limits its use to certain purposes.
--
Don Corbitt, uunet!microsoft!donc, Windows Developer.
Mail flames, post apologies.