From: "Michael V. Nikolaev" <mvn@gu.kiev.ua>
To: <earnie_boyd@yahoo.com>, "cygwin users" <cygwin@sourceware.cygnus.com>
Subject: Re: [bug] Crazy I/O.
Date: Mon, 08 Mar 1999 12:25:00 -0000 [thread overview]
Message-ID: <004301be69a1$bac44a70$6400a8c0@orion.olvi.org> (raw)
I don't sure that it shouldn't be needed. IMHO, it depends on implementation.
BTW, it works well on my installation: NT SP4, cygwin-20.1, coolview dll, no binary mounts, CYGWIN=binmode ... . Here is the respective chunk of source:
...
dup2(fh1, 0);
fseek( stdin, 0L, SEEK_SET );
gets( fh1_IN );
...
This really works.
Wishes,
Michael
-----Original Message-----
From: Earnie Boyd <earnie_boyd@yahoo.com>
To: Michael V. Nikolaev <mvn@gu.kiev.ua>; cygwin users <cygwin@sourceware.cygnus.com>
Date: 8 áåðåçÃÿ 1999 ð. 21:45
Subject: Re: [bug] Crazy I/O.
>---"Michael V. Nikolaev" <mvn@gu.kiev.ua> wrote:
>>
>>
>> -----Original Message-----
>> From: Earnie Boyd <earnie_boyd@yahoo.com>
>> To: cygwin users <cygwin@sourceware.cygnus.com>
>> Date: 8 áåðåçÃÿ 1999 ð. 18:46
>> Subject: [bug] Crazy I/O.
>>
>>
>> Hi!
>>
>> You use stdin as a _stream_ when calling gets(). So, try to call
>fseek(stdin, 0L, SEEK_SET) after the second dup2(). It should work.
>>
>
>Didn't help. Besides, it shouldn't be needed.
>==
>- \\||//
>-------------------o0O0--Earnie--0O0o-------------------
>-- earnie_boyd@yahoo.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
>
\x02ÃÃÃÂ¥v\x16çB\aFò\aVç7V'67&Â&R\x06g&öÃ\aFÂÂ2\x06ÃÂ7CðÃÂ¥6VæB\x06\x12\x06ÃW76\x16vR\aFò\x067ÂwvÂâÃVç7V'67&Â&T\a6÷W&6Wv\x17&Ræ7ÂvçW2æ6öÃÃ
WARNING: multiple messages have this Message-ID
From: "Michael V. Nikolaev" <mvn@gu.kiev.ua>
To: <earnie_boyd@yahoo.com>, "cygwin users" <cygwin@sourceware.cygnus.com>
Subject: Re: [bug] Crazy I/O.
Date: Wed, 31 Mar 1999 19:45:00 -0000 [thread overview]
Message-ID: <004301be69a1$bac44a70$6400a8c0@orion.olvi.org> (raw)
Message-ID: <19990331194500.xihIg6HZdVWZSgWEnnJuMDaT-UMuIpEnvmBM6ITES88@z> (raw)
I don't sure that it shouldn't be needed. IMHO, it depends on implementation.
BTW, it works well on my installation: NT SP4, cygwin-20.1, coolview dll, no binary mounts, CYGWIN=binmode ... . Here is the respective chunk of source:
...
dup2(fh1, 0);
fseek( stdin, 0L, SEEK_SET );
gets( fh1_IN );
...
This really works.
Wishes,
Michael
-----Original Message-----
From: Earnie Boyd <earnie_boyd@yahoo.com>
To: Michael V. Nikolaev <mvn@gu.kiev.ua>; cygwin users <cygwin@sourceware.cygnus.com>
Date: 8 áåðåçÃÿ 1999 ð. 21:45
Subject: Re: [bug] Crazy I/O.
>---"Michael V. Nikolaev" <mvn@gu.kiev.ua> wrote:
>>
>>
>> -----Original Message-----
>> From: Earnie Boyd <earnie_boyd@yahoo.com>
>> To: cygwin users <cygwin@sourceware.cygnus.com>
>> Date: 8 áåðåçÃÿ 1999 ð. 18:46
>> Subject: [bug] Crazy I/O.
>>
>>
>> Hi!
>>
>> You use stdin as a _stream_ when calling gets(). So, try to call
>fseek(stdin, 0L, SEEK_SET) after the second dup2(). It should work.
>>
>
>Didn't help. Besides, it shouldn't be needed.
>==
>- \\||//
>-------------------o0O0--Earnie--0O0o-------------------
>-- earnie_boyd@yahoo.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
>
\x02ÃÃÃÂ¥v\x16çB\aFò\aVç7V'67&Â&R\x06g&öÃ\aFÂÂ2\x06ÃÂ7CðÃÂ¥6VæB\x06\x12\x06ÃW76\x16vR\aFò\x067ÂwvÂâÃVç7V'67&Â&T\a6÷W&6Wv\x17&Ræ7ÂvçW2æ6öÃÃ
next reply other threads:[~1999-03-08 12:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-08 12:25 Michael V. Nikolaev [this message]
1999-03-31 19:45 ` Michael V. Nikolaev
-- strict thread matches above, loose matches on Subject: below --
1999-03-09 6:24 Earnie Boyd
1999-03-31 19:45 ` Earnie Boyd
1999-03-08 11:45 Earnie Boyd
1999-03-31 19:45 ` Earnie Boyd
1999-03-08 11:32 Michael V. Nikolaev
1999-03-31 19:45 ` Michael V. Nikolaev
1999-03-08 8:44 Earnie Boyd
1999-03-31 19:45 ` Earnie Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='004301be69a1$bac44a70$6400a8c0@orion.olvi.org' \
--to=mvn@gu.kiev.ua \
--cc=cygwin@sourceware.cygnus.com \
--cc=earnie_boyd@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).