🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2786

Re: _lread doesn't respect O_TEXT

#2786
From: Don CORBITT
Date: Mon, 20 May 1991 21:40
14 lines
1091 bytes
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.
Technical Details
Message-ID: <72463@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!news.uu.net!microsoft!donc
References: <1991May15.000959.4668@world.std.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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