This is the mail archive of the newlib-cvs@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]

[newlib-cygwin/cygwin-2.0] Make stack_t typedef generally available


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=38a8d3e216fa57e21964f013d4985539d54de663

commit 38a8d3e216fa57e21964f013d4985539d54de663
Author: Jon TURNEY <jon.turney@dronecode.org.uk>
Date:   Wed Apr 1 00:12:07 2015 +0100

    Make stack_t typedef generally available
    
    	* libc/include/sys/signal.h (stack_t): Make typedef generally
    	available.
    
    Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>

Diff:
---
 newlib/ChangeLog                 |  5 +++++
 newlib/libc/include/sys/signal.h | 18 +++++++++---------
 2 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index a5a31c7..d6d194a 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-01  Jon TURNEY  <jon.turney@dronecode.org.uk>
+
+	* libc/include/sys/signal.h (stack_t): Make typedef generally
+	available.
+
 2015-04-01  Corinna Vinschen  <vinschen@redhat.com>
 
 	* libc/stdlib/wctomb_r.c (__utf8_wctomb): Fix check for handling a
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
index 7fc30a7..6ff758c 100644
--- a/newlib/libc/include/sys/signal.h
+++ b/newlib/libc/include/sys/signal.h
@@ -125,15 +125,6 @@ struct sigaction {
  */
 #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__)
@@ -151,6 +142,15 @@ struct sigaction
 };
 #endif /* defined(__rtems__) */
 
+/*
+ * 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;
+
 #define SIG_SETMASK 0	/* set mask with sigprocmask() */
 #define SIG_BLOCK 1	/* set of signals to block */
 #define SIG_UNBLOCK 2	/* set of signals to, well, unblock */


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