* pipe.cc (fhandler_pipe::create_selectable): Use MAX_PATH instead of

CYG_MAX_PATH.
	* tty.cc (tty_list::init_session): Ditto.
	(tty::alive): Ditto.
	(tty::open_mutex): Ditto.
	(tty::create_inuse): Ditto.
	(tty::get_event): Ditto.
This commit is contained in:
Corinna Vinschen 2008-03-12 16:55:42 +00:00
parent 414dcf5f83
commit 495571e5fc
3 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,13 @@
2008-03-12 Corinna Vinschen <corinna@vinschen.de>
* pipe.cc (fhandler_pipe::create_selectable): Use MAX_PATH instead of
CYG_MAX_PATH.
* tty.cc (tty_list::init_session): Ditto.
(tty::alive): Ditto.
(tty::open_mutex): Ditto.
(tty::create_inuse): Ditto.
(tty::get_event): Ditto.
2008-03-12 Corinna Vinschen <corinna@vinschen.de> 2008-03-12 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Disable * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Disable

View File

@ -342,7 +342,7 @@ fhandler_pipe::create_selectable (LPSECURITY_ATTRIBUTES sa_ptr, HANDLE& r,
if (psize < PIPE_BUF) if (psize < PIPE_BUF)
psize = PIPE_BUF; psize = PIPE_BUF;
char pipename[CYG_MAX_PATH]; char pipename[MAX_PATH];
/* Retry CreateNamedPipe as long as the pipe name is in use. /* Retry CreateNamedPipe as long as the pipe name is in use.
Retrying will probably never be necessary, but we want Retrying will probably never be necessary, but we want

View File

@ -66,7 +66,7 @@ HANDLE NO_COPY tty_list::mutex = NULL;
void __stdcall void __stdcall
tty_list::init_session () tty_list::init_session ()
{ {
char mutex_name[CYG_MAX_PATH]; char mutex_name[MAX_PATH];
/* tty_list::mutex is used while searching for a tty slot. It's necessary /* tty_list::mutex is used while searching for a tty slot. It's necessary
while finding console window handle */ while finding console window handle */
@ -300,7 +300,7 @@ bool
tty::alive (const char *fmt) tty::alive (const char *fmt)
{ {
HANDLE ev; HANDLE ev;
char buf[CYG_MAX_PATH]; char buf[MAX_PATH];
shared_name (buf, fmt, ntty); shared_name (buf, fmt, ntty);
if ((ev = OpenEvent (EVENT_ALL_ACCESS, FALSE, buf))) if ((ev = OpenEvent (EVENT_ALL_ACCESS, FALSE, buf)))
@ -323,7 +323,7 @@ tty::open_input_mutex ()
HANDLE HANDLE
tty::open_mutex (const char *mutex) tty::open_mutex (const char *mutex)
{ {
char buf[CYG_MAX_PATH]; char buf[MAX_PATH];
shared_name (buf, mutex, ntty); shared_name (buf, mutex, ntty);
return OpenMutex (MUTEX_ALL_ACCESS, TRUE, buf); return OpenMutex (MUTEX_ALL_ACCESS, TRUE, buf);
} }
@ -332,7 +332,7 @@ HANDLE
tty::create_inuse (const char *fmt) tty::create_inuse (const char *fmt)
{ {
HANDLE h; HANDLE h;
char buf[CYG_MAX_PATH]; char buf[MAX_PATH];
shared_name (buf, fmt, ntty); shared_name (buf, fmt, ntty);
h = CreateEvent (&sec_all, TRUE, FALSE, buf); h = CreateEvent (&sec_all, TRUE, FALSE, buf);
@ -357,7 +357,7 @@ HANDLE
tty::get_event (const char *fmt, BOOL manual_reset) tty::get_event (const char *fmt, BOOL manual_reset)
{ {
HANDLE hev; HANDLE hev;
char buf[CYG_MAX_PATH]; char buf[MAX_PATH];
shared_name (buf, fmt, ntty); shared_name (buf, fmt, ntty);
if (!(hev = CreateEvent (&sec_all, manual_reset, FALSE, buf))) if (!(hev = CreateEvent (&sec_all, manual_reset, FALSE, buf)))