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>
This commit is contained in:
Jon TURNEY 2015-04-01 00:12:07 +01:00
parent 431b28c196
commit f992ae6f4d
2 changed files with 14 additions and 9 deletions

View File

@ -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

View File

@ -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 */