* miscfuncs.cc (create_pipe): Delete obsolete function.
* miscfuncs.h (create_pipe): Delete define. * pipe.c (fhandler_pipe::create_selectable): Delete obsolete comment.
This commit is contained in:
		| @@ -1,3 +1,10 @@ | ||||
| 2011-08-12  Christopher Faylor  <me.cygwin2011@cgf.cx> | ||||
|  | ||||
| 	* miscfuncs.cc (create_pipe): Delete obsolete function. | ||||
| 	* miscfuncs.h (create_pipe): Delete define. | ||||
|  | ||||
| 	* pipe.c (fhandler_pipe::create_selectable): Delete obsolete comment. | ||||
|  | ||||
| 2011-08-12  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* fhandler_proc.cc (fhandler_proc::closedir): Don't free, but delete | ||||
|   | ||||
| @@ -332,20 +332,6 @@ nice_to_winprio (int &nice) | ||||
|   return prio; | ||||
| } | ||||
|  | ||||
| #undef CreatePipe | ||||
| bool | ||||
| create_pipe (PHANDLE hr,PHANDLE hw, LPSECURITY_ATTRIBUTES sa, DWORD n) | ||||
| { | ||||
|   for (int i = 0; i < 10; i++) | ||||
|     if (CreatePipe (hr, hw, sa, n)) | ||||
|       return true; | ||||
|     else if (GetLastError () == ERROR_PIPE_BUSY && i < 9) | ||||
|       Sleep (10); | ||||
|     else | ||||
|       break; | ||||
|   return false; | ||||
| } | ||||
|  | ||||
| /* backslashify: Convert all forward slashes in src path to back slashes | ||||
|    in dst path.  Add a trailing slash to dst when trailing_slash_p arg | ||||
|    is set to 1. */ | ||||
|   | ||||
| @@ -16,7 +16,6 @@ DWORD nice_to_winprio (int &) __attribute__ ((regparm (1))); | ||||
|  | ||||
| bool __stdcall create_pipe (PHANDLE, PHANDLE, LPSECURITY_ATTRIBUTES, DWORD) | ||||
|   __attribute__ ((regparm (3))); | ||||
| #define CreatePipe create_pipe | ||||
|  | ||||
| extern "C" void yield (); | ||||
|  | ||||
|   | ||||
| @@ -243,7 +243,6 @@ fhandler_pipe::create_selectable (LPSECURITY_ATTRIBUTES sa_ptr, HANDLE& r, | ||||
| 			   PIPE_TYPE_BYTE | PIPE_READMODE_BYTE, 1, psize, | ||||
| 			   psize, NMPWAIT_USE_DEFAULT_WAIT, sa_ptr); | ||||
|  | ||||
|       /* Win 95 seems to return NULL instead of INVALID_HANDLE_VALUE */ | ||||
|       if (r != INVALID_HANDLE_VALUE) | ||||
| 	{ | ||||
| 	  debug_printf ("pipe read handle %p", r); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user