Article View: comp.os.os2.programmer
Article #1919stat() no same in VDM
From: Brian Havard (Kheldar)
Date: Wed, 07 Oct 1992 07:21
Date: Wed, 07 Oct 1992 07:21
23 lines
1692 bytes
1692 bytes
I have discovered a problem when using the stat function in a DOS program under OS/2. The value of st_dev under real dos returns the number of the disk ie a:=0 b:=1 c:=2 etc. When the same program is run in a VDM it returns garbage. st_rdev seems to be an exact copy of st_dev also. I'm using BC++ 2.0 if that makes any difference. This could be responsible for several problems I've encountered in some dos programs. eg cshow claims missing files as the cshow.dat file I believe is based on stat information (this file is created when cshow is first run after verifying all doc/driver files are present, allowing you to delete unneeded files). Could someone with the update beta test to see if this is still the case? Could it just be something strange on my system? (my AMI keyboard BIOS is slightly old, can't see any connection however). Does IBM know about this problem? -- _______________________________________________________________________________ | Brian Havard | "He is not the messiah! | | s902150@minyos.xx.rmit.oz.au | He's a very naughty boy!" - Life of Brian | -------------------------------------------------------------------------------
Technical Details
Message-ID:
<s902150.718442470@minyos.xx.rmit.OZ.AU>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!goanna!escargot!minyos.xx.rmit.OZ.AU!s902150Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!goanna!escargot!minyos.xx.rmit.OZ.AU!s902150 From: s902150@minyos.xx.rmit.oz.au (Brian Havard (Kheldar)) Newsgroups: comp.os.os2.programmer Subject: stat() no same in VDM Summary: st_dev different in VDM vs real DOS Keywords: stat, st_dev, VDM Message-ID: <s902150.718442470@minyos.xx.rmit.OZ.AU> Date: 7 Oct 92 07:21:10 GMT Organization: RMIT Computer Centre Lines: 23 NNTP-Posting-Host: minyos.xx.rmit.oz.au