This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

signal.h: sighandler_t


glibc uses the name sighandler_t for the signal handler function
type[1].  Patch attached which provides this typedef without changing
the existing _sig_func_ptr naming.


Yaakov
Cygwin/X

[1]
http://www.gnu.org/software/libc/manual/html_node/Basic-Signal-Handling.html
2010-07-01  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

	* libc/include/signal.h (sighandler_t): Add typedef.

Index: libc/include/signal.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/signal.h,v
retrieving revision 1.3
diff -u -r1.3 signal.h
--- libc/include/signal.h	24 Jul 2002 18:18:06 -0000	1.3
+++ libc/include/signal.h	1 Jul 2010 06:33:28 -0000
@@ -7,6 +7,7 @@
 _BEGIN_STD_C
 
 typedef int	sig_atomic_t;		/* Atomic entity type (ANSI) */
+typedef _sig_func_ptr sighandler_t;	/* glibc naming */
 
 #define SIG_DFL ((_sig_func_ptr)0)	/* Default action */
 #define SIG_IGN ((_sig_func_ptr)1)	/* Ignore action */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]