Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!news.uu.net!microsoft!donc From: donc@microsoft.UUCP (Don CORBITT) Newsgroups: comp.windows.ms.programmer Subject: Re: _lread doesn't respect O_TEXT Message-ID: <72463@microsoft.UUCP> Date: 20 May 91 21:40:36 GMT References: <1991May15.000959.4668@world.std.com> Reply-To: donc@microsoft.UUCP (Don CORBITT) Organization: Microsoft Corp., Redmond WA Lines: 14 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.