Xref: utzoo comp.sys.ibm.pc:33645 alt.msdos.programmer:334 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!cogsci.berkeley.edu!jsilva From: jsilva@cogsci.berkeley.edu (John Silva) Newsgroups: comp.sys.ibm.pc,alt.msdos.programmer Subject: Possible bug in Turbo C 2.0 stat() Message-ID: <30865@ucbvax.BERKELEY.EDU> Date: 24 Aug 89 00:49:23 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: jsilva@cogsci.berkeley.edu (John Silva) Distribution: usa Organization: University of California, Berkeley Lines: 25 I have run into what may be a bug in the stat() function in Turbo C 2.0's libraries. It seems that if you pass the root directory (/) to stat(), it returns a "does not exist" error. Any other directory or file returns correctly. This behavior is present in all of Turbo's libraries. I have checked my code using Microsoft C 5.1, and stat functions correctly under the same conditions. Since my manuals state stat() "returns status on any file, directory, or device", I can only assume that Turbo's implementation is in error. Does anyone know if there is a fix or workaround to this problem, or at the very least, can confirm it on another machine? I have applied the TLIB patches, and the tiny model stat() patch, but can't find any other patches (I don't have access to Compu$erve). Thanks in advance. -J. John P. Silva "I drank WHAT?!" Inova Products, Inc. Internet: jsilva@cogsci.berkeley.edu (415)222-9255 Usenet: ucbvax!cogsci!jsilva