delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/06/25/11:48:19

From: Doug Kaufman <dkaufman AT rahul DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: stat and character devices
Date: Wed, 25 Jun 2003 15:28:19 +0000 (UTC)
Organization: a2i network
Lines: 30
Message-ID: <bdcf2j$9v8$1@blue.rahul.net>
References: <bdbdie$im7$1 AT blue DOT rahul DOT net> <2950-Wed25Jun2003124946+0300-eliz AT elta DOT co DOT il>
NNTP-Posting-Host: violet.rahul.net
X-Trace: blue.rahul.net 1056554899 10216 66.237.72.28 (25 Jun 2003 15:28:19 GMT)
X-Complaints-To: support AT rahul DOT net
NNTP-Posting-Date: Wed, 25 Jun 2003 15:28:19 +0000 (UTC)
User-Agent: nn/6.6.4
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii" <eliz AT elta DOT co DOT il> writes:

>> From: Doug Kaufman <dkaufman AT rahul DOT net>
>> I noticed that stat treats some character devices differently, depending
>> on whether it is run in a DOS box under Win98 or in plain DOS. The COM
>> series (com1, com2, etc.) shows as a character device when run under
>> plain DOS, but not in the DOS box under Win98.

>You didn't show the results of running this program on Windows 98.
>Here are mine:

>    The value of base is com1
>    The value of st_dev is -1.
>    The value of st_mode is 8612.
>    The file is a character device.

I those values under plain DOS. Under Win98(second edition), I get:

    The value of base is com1
    The value of st_dev is 0.
    The value of st_mode is 0.
    The file is not a character device.

If this has been fixed under 2.04, I don't think anything more has to be
done. I'll try to get the 2.04 libc.a and retest.

                             Doug
-- 
Doug Kaufman
Internet: dkaufman AT rahul DOT net

- Raw text -


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