Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys/signal.h')
-rw-r--r--newlib/libc/include/sys/signal.h50
1 files changed, 5 insertions, 45 deletions
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
index a29f525c1..3d6ba0831 100644
--- a/newlib/libc/include/sys/signal.h
+++ b/newlib/libc/include/sys/signal.h
@@ -71,12 +71,9 @@ typedef struct {
/* 3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76 */
-#define SA_NOCLDSTOP 0x1 /* Do not generate SIGCHLD when children stop */
-#define SA_SIGINFO 0x2 /* Invoke the signal catching function with */
- /* three arguments instead of one. */
-#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
-#define SA_ONSTACK 0x4 /* Signal delivery will be on a separate stack. */
-#endif
+#define SA_NOCLDSTOP 1 /* Do not generate SIGCHLD when children stop */
+#define SA_SIGINFO 2 /* Invoke the signal catching function with */
+ /* three arguments instead of one. */
/* struct sigaction notes from POSIX:
*
@@ -107,34 +104,6 @@ struct sigaction {
#define sa_sigaction _signal_handlers._sigaction
#endif
-#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
-/*
- * Minimum and default signal stack constants. Allow for target overrides
- * from <sys/features.h>.
- */
-#ifndef MINSIGSTKSZ
-#define MINSIGSTKSZ 2048
-#endif
-#ifndef SIGSTKSZ
-#define SIGSTKSZ 8192
-#endif
-
-/*
- * Possible values for ss_flags in stack_t below.
- */
-#define SS_ONSTACK 0x1
-#define SS_DISABLE 0x2
-
-/*
- * Structure used in sigaltstack call.
- */
-typedef struct sigaltstack {
- void *ss_sp; /* Stack base or pointer. */
- int ss_flags; /* Flags. */
- size_t ss_size; /* Stack size. */
-} stack_t;
-#endif
-
#elif defined(__CYGWIN__)
#include <cygwin/signal.h>
#else
@@ -169,6 +138,7 @@ int _EXFUN(sigprocmask, (int how, const sigset_t *set, sigset_t *oset));
int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset));
#endif
+/* protos for functions found in winsup sources for CYGWIN */
#if defined(__CYGWIN__) || defined(__rtems__)
#undef sigaddset
#undef sigdelset
@@ -178,12 +148,8 @@ int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset));
#ifdef _COMPILING_NEWLIB
int _EXFUN(_kill, (pid_t, int));
-#endif /* _COMPILING_NEWLIB */
-#endif /* __CYGWIN__ || __rtems__ */
-#if defined(__CYGWIN__) || defined(__rtems__) || defined(__SPU__)
+#endif
int _EXFUN(kill, (pid_t, int));
-#endif /* __CYGWIN__ || __rtems__ || __SPU__ */
-#if defined(__CYGWIN__) || defined(__rtems__)
int _EXFUN(killpg, (pid_t, int));
int _EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *));
int _EXFUN(sigaddset, (sigset_t *, const int));
@@ -195,12 +161,6 @@ int _EXFUN(sigpending, (sigset_t *));
int _EXFUN(sigsuspend, (const sigset_t *));
int _EXFUN(sigpause, (int));
-#ifdef __rtems__
-#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
-int _EXFUN(sigaltstack, (const stack_t *__restrict, stack_t *__restrict));
-#endif
-#endif
-
#if defined(_POSIX_THREADS)
#ifdef __CYGWIN__
# ifndef _CYGWIN_TYPES_H