This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Remove unused libc signal.h junk
- From: Jonathan Larmour <jlarmour at jifvik dot org>
- To: ecos-patches at sources dot redhat dot com
- Date: Thu, 26 Jun 2003 06:24:53 +0100
- Subject: Remove unused libc signal.h junk
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libc/signals/current/ChangeLog,v
retrieving revision 1.8
diff -u -5 -p -r1.8 ChangeLog
--- ChangeLog 24 Feb 2003 14:27:15 -0000 1.8
+++ ChangeLog 26 Jun 2003 05:24:51 -0000
@@ -1,5 +1,10 @@
+2003-06-26 Jonathan Larmour <jifl@eCosCentric.com>
+
+ * include/signal.h: Remove unused definitions that had been used
+ for embryonic POSIX signals support.
+
2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
* cdl/signals.cdl: Fix doc link.
2003-02-13 Jonathan Larmour <jifl@eCosCentric.com>
Index: include/signal.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libc/signals/current/include/signal.h,v
retrieving revision 1.3
diff -u -5 -p -r1.3 signal.h
--- include/signal.h 23 May 2002 23:07:09 -0000 1.3
+++ include/signal.h 26 Jun 2003 05:24:51 -0000
@@ -60,65 +60,19 @@
// INCLUDES
#include <cyg/infra/cyg_type.h> // Common type definitions and support
-#ifdef CYGSEM_LIBC_SIGNALS_POSIX
-# include <unistd.h> // _POSIX_* macros
-#endif
-
// TYPE DEFINITIONS
// Integral type that can be accessed atomically - from ISO C 7.7
typedef cyg_atomic sig_atomic_t;
// Type of signal handler functions
typedef void (*__sighandler_t)(int);
-#ifdef CYGSEM_LIBC_SIGNALS_POSIX
-
-// Signal sets from POSIX 1003.1 chap 3.3.3 and other chaps
-typedef cyg_uint32 sigset_t;
-
-// POSIX 1003.1 chap 3.3.1.2
-union sigval {
- int sival_int; // used when application-defined value is an int
- void *sival_ptr; // used when application-defined value is a pointer
-};
-
-// Signal information structure passed to a __siginfoaction_t style handler
-// from POSIX 1003.1 chap 3.3.1.3
-typedef struct {
- int si_signo; // signal number
- int si_code; // cause of signal
- union sigval si_value; // signal value
-} siginfo_t;
-
-
-// Type of signal handler used if SA_SIGINFO is set in flags to sigaction
-// from POSIX 1003.1 chap 3.3.1.3
-typedef void (*__siginfoaction_t)(int __signo, siginfo_t *__info,
- void *__context);
-
-// struct sigaction describes the action to be taken when we get a signal
-// From POSIX 1003.1 chap. 3.3.4.2
-struct sigaction {
- sigset_t sa_mask; // Additional signals to be blocked
- int sa_flags; // Special flags
- union {
- __sighandler_t sa_handler; // signal handler
- __siginfoaction_t sa_sigaction; // Function to call instead of
- // sa_handler if SA_SIGINFO is
- // set in sa_flags
- } __sigactionhandler;
-#define sa_handler __sigactionhandler.sa_handler
-#define sa_sigaction __sigactionhandler.sa_sigaction
-};
-
-
-#endif // ifdef CYGSEM_LIBC_SIGNALS_POSIX
// CONSTANTS
// Signal handlers for use with signal(). We avoid 0 because in an embedded
@@ -153,34 +107,10 @@ struct sigaction {
#define SIGTERM 15 // Software termination request (ISO C)
#define SIGUSR1 16 // Application-defined signal 1 (POSIX)
#define SIGUSR2 17 // Application-defined signal 2 (POSIX)
#define CYGNUM_LIBC_SIGNALS 18 // Maximum signal number + 1
-
-#ifdef _POSIX_JOB_CONTROL
-# define SIGCHLD 18 // Child process terminated or stopped (POSIX)
-# define SIGCONT 19 // Continue if stopped (POSIX)
-# define SIGSTOP 20 // Stop (cannot be caught or ignored) (POSIX)
-# define SIGTSTP 21 // Interactive stop (POSIX)
-# define SIGTTIN 22 // Terminal read attempted by backgrounded
- // process (POSIX)
-# define SIGTTOU 23 // Terminal write attempted by backgrounded
- // process (POSIX)
-#undef CYGNUM_LIBC_SIGNALS
-#define CYGNUM_LIBC_SIGNALS 24
-#endif
-
-// FIXME - strictly by POSIX in 3.3.1.1 we should define SIGRTMIN/SIGRTMAX
-// But if so, to what value if it _isn't_ supported?!
-
-#ifdef CYGSEM_LIBC_SIGNALS_POSIX
-// sa_flag bits in struct sigaction
-#define SA_NOCLDSTOP 1 // Don't generate SIGCHLD when children stop
-#define SA_SIGINFO 2 // Use the __siginfoaction_t style signal
- // handler, instead of the single argument handler
-#endif // ifdef CYGSEM_LIBC_SIGNALS_POSIX
-
// FUNCTION PROTOTYPES
#ifdef __cplusplus
extern "C" {