* cygthread.cc (cygthread::cygthread): Add more info to fatal error.

* fhandler_disk_file.cc (fhandler_disk_file::readdir): Temporarily remove
insertion of /dev into root directory.
* path.cc (path_conv::check): Ditto.
This commit is contained in:
Christopher Faylor 2005-09-12 21:19:07 +00:00
parent 6772e4c9e9
commit 4e993dc7cc
4 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2005-09-12 Christopher Faylor <cgf@timesys.com>
* cygthread.cc (cygthread::cygthread): Add more info to fatal error.
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Temporarily
remove insertion of /dev into root directory.
* path.cc (path_conv::check): Ditto.
2005-09-11 Christopher Faylor <cgf@timesys.com>
* heap.cc (heap_init): Allocate heap from top down as a hedge against

View File

@ -184,7 +184,7 @@ cygthread::cygthread (LPTHREAD_START_ROUTINE start, LPVOID param,
h = CreateThread (&sec_none_nih, 0, is_freerange ? simplestub : stub,
this, 0, &id);
if (!h)
api_fatal ("thread handle not set - %p<%p>, %E", h, id);
api_fatal ("CreateThread failed for %s - %p<%p>, %E", name, h, id);
thread_printf ("created name '%s', thread %p, id %p", name, h, id);
#ifdef DEBUGGING
terminated = false;

View File

@ -1381,7 +1381,7 @@ fhandler_disk_file::readdir (DIR *dir, dirent *de)
bool added = false;
if (!(dir->__flags & dirent_isroot))
/* nothing */;
else if (!(dir->__flags & dirent_saw_dev))
else if (0 && !(dir->__flags & dirent_saw_dev))
{
strcpy (buf.cFileName, "dev");
added = true;

View File

@ -648,12 +648,14 @@ path_conv::check (const char *src, unsigned opt,
else if (dev == FH_DEV)
{
dev.devn = FH_FS;
#if 0
fileattr = GetFileAttributes (this->path);
if (!component && fileattr == INVALID_FILE_ATTRIBUTES)
{
fileattr = FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_READONLY;
goto out;
}
#endif
}
else if (isvirtual_dev (dev.devn))
{