| delorie.com/archives/browse.cgi | search |
| From: | Andrew <andnews AT ihug DOT com DOT oz DOT au> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: stat and character devices |
| Date: | Wed, 25 Jun 2003 23:03:51 +1000 |
| Organization: | ECLiPSE |
| Lines: | 26 |
| Message-ID: | <ga7jfv0tk254jg05c21ran3ligd9lrc96l@4ax.com> |
| References: | <bdbdie$im7$1 AT blue DOT rahul DOT net> <2950-Wed25Jun2003124946+0300-eliz AT elta DOT co DOT il> |
| NNTP-Posting-Host: | p408-apx1.syd.ihug.com.au |
| Mime-Version: | 1.0 |
| X-Trace: | lust.ihug.co.nz 1056546236 18959 203.173.141.154 (25 Jun 2003 13:03:56 GMT) |
| X-Complaints-To: | abuse AT ihug DOT co DOT nz |
| NNTP-Posting-Date: | Wed, 25 Jun 2003 13:03:56 +0000 (UTC) |
| X-Newsreader: | Forte Agent 1.93/32.576 English (American) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
>> 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. > >On my Windows 98 box, "ls -l com2" shows "com2" in yellow, which means >`stat' did return the character-device bit set for it. So I guess I >cannot reproduce this here. > >> A test program that demonstrates this follows. > >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. > >Exactly as I'd expect. > >So I guess more digging is required. Could the differences be caused by the 2.03 v's 2.04 alpha 1 differences? Andrew
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |