Article View: net.micro.pc
Article #7981stat() on devices
From: DucharmeRL
Date: Mon, 22 Sep 1986 16:13
Date: Mon, 22 Sep 1986 16:13
15 lines
1301 bytes
1301 bytes
I am writing a program on a PC6300+ that does a stat() function call [using
Microsoft C compiler version 3.0] on the following - "a:". This always returns
ax=ffff as a failure. However, stat("a:new", &stat_buf) does return a valid
status. Replacing "a:" with a "a:\\" does not help and if you do a "ls -la"
(UNIX command transported to MSDOS), there is no "." or ".." files on the
floppy or in the root directory of "c:". Could this be why the stat fails
to work for the root directories? My basic intent of the stat() is to find
out if the file is a directory or not (I pass the command a "a:"). Further
information is that I am running PC-DOS 3.10 on the PC6300+ with a 20MB hard
disk and a 1.2Mb Floppy.
Thanks in advance:
Robert Ducharme
ihnp4!druri!rld
(303) 538-4066
Technical Details
Message-ID:
<1038@druhi.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!ihnp4!drutx!druhi!rldShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!ihnp4!drutx!druhi!rld From: rld@druhi.UUCP (DucharmeRL) Newsgroups: net.micro.pc Subject: stat() on devices Message-ID: <1038@druhi.UUCP> Date: Mon, 22-Sep-86 12:13:54 EDT Article-I.D.: druhi.1038 Posted: Mon Sep 22 12:13:54 1986 Date-Received: Tue, 23-Sep-86 22:22:56 EDT Distribution: net Organization: AT&T Information System Labs, Denver, Co Lines: 15 Keywords: stat, C compilers