delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/08/11:46:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19990308164440.28717.rocketmail@send106.yahoomail.com>
Date: Mon, 8 Mar 1999 08:44:40 -0800 (PST)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: [bug] Crazy I/O.
To: cygwin users <cygwin AT sourceware DOT cygnus DOT com>
MIME-Version: 1.0

--0-511702305-920911480=:18044
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

This bug has to do with getting back to the beginning of a file.  I was trying to test what happens with O_TEXT and O_BINARY based upon the CYGWIN variable and the [no]binmode value.  I'm using the 1998-12-3 release of the cygwin1.dll on NT4SP3.  I haven't tested with a recent snapshot but the list needs to know about this for the distributed version.

I've included a test case.  You must save the file as text.tst.c, gcc -o text text.tst.c, and have your working directory set to the source code.


==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd AT yahoo DOT com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

--0-511702305-920911480=:18044
Content-Type: application/octet-stream; name="text.tst.c"
Content-Transfer-Encoding: base64
Content-Description: text.tst.c
Content-Disposition: attachment; filename="text.tst.c"

I2luY2x1ZGUgPGZjbnRsLmg+DQojaW5jbHVkZSA8c3RkbGliLmg+DQojaW5j
bHVkZSA8c3RkaW8uaD4NCiNpbmNsdWRlIDxzdHJpbmcuaD4NCiNpbmNsdWRl
IDxpby5oPg0KDQppbnQNCm1haW4gKHZvaWQpDQp7DQogIGludCBmaDEsIGZo
MjsNCiAgdW5zaWduZWQgaW50IG5ieXRlcyA9IDYwMDAwLC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dmFsdWU6ICVpXHRc
dCVjXG4iLCBmaDFfSU5baV0sIGZoMV9JTltpXSApOw0KICAgIH0NCiAgfQ0K
ICBjbG9zZSggZmgxICk7DQp9DQo=


--0-511702305-920911480=:18044
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--0-511702305-920911480=:18044--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019