* cygheap.cc (cygheap_init): Allocate space for sigaction array in cygheap.
* cygheap.h (cygheap_types): Add HEAP_SIGS. * exceptions.cc (signal_fixup_after_exec): Remove from this file. * pinfo.h (pinfo::getsig): Just return global_sigs array. (pinfo::sigs): Delete. * sigproc.cc (signal_fixup_after_exec): Move it here. (global_sigs): New global array, moved from pinfo structure. (sigalloc): New function. Allocate global sigaction array here. (proc_subproc): Remove copysigs call. It's automatic now. * include/sys/cygwin.h (PID_NOCLDSTOP): New value. * signal.cc (sigaction): Set myself->PID_NODCLDSTOP when appropriate. * sigproc.h (sigalloc): Declare. * fnmatch.c (fnmatch): Use C90 parameters. (rangematch): Ditto. * fhandler.cc (fhandler_base::raw_read): Use right coercion to avoid a compiler warning.
This commit is contained in:
		@@ -66,9 +66,7 @@ static char rcsid[] = "$OpenBSD: fnmatch.c,v 1.7 2000/03/23 19:13:51 millert Exp
 | 
			
		||||
static int rangematch __P((const char *, char, int, char **));
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
fnmatch(pattern, string, flags)
 | 
			
		||||
	const char *pattern, *string;
 | 
			
		||||
	int flags;
 | 
			
		||||
fnmatch(const char *pattern, const char *string, int flags)
 | 
			
		||||
{
 | 
			
		||||
	const char *stringstart;
 | 
			
		||||
	char *newp;
 | 
			
		||||
@@ -168,15 +166,7 @@ fnmatch(pattern, string, flags)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
#ifdef __STDC__
 | 
			
		||||
rangematch(const char *pattern, char test, int flags, char **newp)
 | 
			
		||||
#else
 | 
			
		||||
rangematch(pattern, test, flags, newp)
 | 
			
		||||
	char *pattern;
 | 
			
		||||
	char test;
 | 
			
		||||
	int flags;
 | 
			
		||||
	char **newp;
 | 
			
		||||
#endif
 | 
			
		||||
{
 | 
			
		||||
	int negate, ok;
 | 
			
		||||
	char c, c2;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user