Date: Tue, 7 Jul 92 13:30:26 EDT From: DJ Delorie To: ericb AT lsid DOT hp DOT com Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: stat("/") fails >I have found that stat() fails when trying to stat the root directory >"/". I have tried the following combinations: > stat("/", &buf); > stat("/.", &buf); > stat("c:/", &buf); >All of these fail, and set errno to 2 (file not found). Does anyone >know why? Does anyone know how to fix this, or at least a workaround? Try it with Turbo-C. I bet it doesn't work there either, since the root directory isn't really a "file" per se (it doesn't exist in another directory's file listing). DJ dj AT ctron DOT com Life is a banana.