2003-11-11 Robert Collins <rbtcollins@hotmail.com>
Ron Parker <rdparker@butlermfg.com> * bsdlib.cc: Update throughout to use CYG_MAX_PATH rather than MAX_PATH. * cygheap.h: Ditto. * dcrt0.cc: Ditto. * delqueue.cc: Ditto. * dlfcn.cc: Ditto. * dll_init.cc: Ditto. * dll_init.h: Ditto. * dtable.cc: Ditto. * environ.cc: Ditto. * environ.h: Ditto. * exceptions.cc: Ditto. * external.cc: Ditto. * fhandler_disk_file.cc: Ditto. * fhandler_proc.cc: Ditto. * fhandler_process.cc: Ditto. * fhandler_raw.cc: Ditto. * fhandler_registry.cc: Ditto. * fhandler_socket.cc: Ditto. * fhandler_virtual.cc: Ditto. * miscfuncs.cc: Ditto. * mmap.cc: Ditto. * netdb.cc: Ditto. * path.cc: Ditto. * path.h: Ditto. * pinfo.cc: Ditto. * pinfo.h: Ditto. * pthread.cc: Ditto. * registry.cc: Ditto. * shared.cc: Ditto. * shared_info.h: Ditto. * smallprint.c: Ditto. * spawn.cc: Ditto. * strace.cc: Ditto. * syscalls.cc: Ditto. * thread.h: Ditto. * uinfo.cc: Ditto. * winsup.h: Ditto. * include/limits.h: Ditto. * include/cygwin/config.h: Ditto. * include/sys/param.h: Ditto.
This commit is contained in:
@@ -97,7 +97,7 @@ int
|
||||
fhandler_registry::exists ()
|
||||
{
|
||||
int file_type = 0, index = 0, pathlen;
|
||||
DWORD buf_size = MAX_PATH;
|
||||
DWORD buf_size = CYG_MAX_PATH;
|
||||
LONG error;
|
||||
char buf[buf_size];
|
||||
const char *file;
|
||||
@@ -152,7 +152,7 @@ fhandler_registry::exists ()
|
||||
file_type = 1;
|
||||
goto out;
|
||||
}
|
||||
buf_size = MAX_PATH;
|
||||
buf_size = CYG_MAX_PATH;
|
||||
}
|
||||
if (error != ERROR_NO_MORE_ITEMS)
|
||||
{
|
||||
@@ -160,7 +160,7 @@ fhandler_registry::exists ()
|
||||
goto out;
|
||||
}
|
||||
index = 0;
|
||||
buf_size = MAX_PATH;
|
||||
buf_size = CYG_MAX_PATH;
|
||||
while (ERROR_SUCCESS ==
|
||||
(error = RegEnumValue (hKey, index++, buf, &buf_size, NULL, NULL,
|
||||
NULL, NULL))
|
||||
@@ -172,7 +172,7 @@ fhandler_registry::exists ()
|
||||
file_type = -1;
|
||||
goto out;
|
||||
}
|
||||
buf_size = MAX_PATH;
|
||||
buf_size = CYG_MAX_PATH;
|
||||
}
|
||||
if (error != ERROR_NO_MORE_ITEMS)
|
||||
{
|
||||
@@ -276,7 +276,7 @@ fhandler_registry::fstat (struct __stat64 *buf)
|
||||
struct dirent *
|
||||
fhandler_registry::readdir (DIR * dir)
|
||||
{
|
||||
DWORD buf_size = MAX_PATH;
|
||||
DWORD buf_size = CYG_MAX_PATH;
|
||||
char buf[buf_size];
|
||||
HANDLE handle;
|
||||
struct dirent *res = NULL;
|
||||
@@ -324,7 +324,7 @@ retry:
|
||||
{
|
||||
/* If we're finished with sub-keys, start on values under this key. */
|
||||
dir->__d_position |= REG_ENUM_VALUES_MASK;
|
||||
buf_size = MAX_PATH;
|
||||
buf_size = CYG_MAX_PATH;
|
||||
goto retry;
|
||||
}
|
||||
if (error != ERROR_SUCCESS && error != ERROR_MORE_DATA)
|
||||
@@ -592,7 +592,7 @@ fhandler_registry::fill_filebuf ()
|
||||
}
|
||||
return true;
|
||||
value_not_found:
|
||||
DWORD buf_size = MAX_PATH;
|
||||
DWORD buf_size = CYG_MAX_PATH;
|
||||
char buf[buf_size];
|
||||
int index = 0;
|
||||
while (ERROR_SUCCESS ==
|
||||
@@ -604,7 +604,7 @@ value_not_found:
|
||||
set_errno (EISDIR);
|
||||
return false;
|
||||
}
|
||||
buf_size = MAX_PATH;
|
||||
buf_size = CYG_MAX_PATH;
|
||||
}
|
||||
if (error != ERROR_NO_MORE_ITEMS)
|
||||
{
|
||||
@@ -622,7 +622,7 @@ open_key (const char *name, REGSAM access, bool isValue)
|
||||
HKEY hKey = (HKEY) INVALID_HANDLE_VALUE;
|
||||
HKEY hParentKey = (HKEY) INVALID_HANDLE_VALUE;
|
||||
bool parentOpened = false;
|
||||
char component[MAX_PATH];
|
||||
char component[CYG_MAX_PATH];
|
||||
|
||||
while (*name)
|
||||
{
|
||||
|
Reference in New Issue
Block a user