Move MINSIGSTKSZ from <machine/signal.h> to <machine/_limits.h> and rename
it to __MINSIGSTKSZ. Define MINSIGSTKSZ in <sys/signal.h>. This is done in order to use MINSIGSTKSZ for the macro PTHREAD_STACK_MIN in <pthread.h> (soon <limits.h>) without having to include the whole <sys/signal.h> header. Discussed with: bde
This commit is contained in:
parent
d599e39db8
commit
a1f85d7f83
@ -87,4 +87,10 @@
|
|||||||
#define __LONG_BIT 64
|
#define __LONG_BIT 64
|
||||||
#define __WORD_BIT 32
|
#define __WORD_BIT 32
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Minimum signal stack size. The current signal frame
|
||||||
|
* for Alpha is 808 bytes large.
|
||||||
|
*/
|
||||||
|
#define __MINSIGSTKSZ (1024 * 4)
|
||||||
|
|
||||||
#endif /* !_MACHINE__LIMITS_H_ */
|
#endif /* !_MACHINE__LIMITS_H_ */
|
||||||
|
@ -36,14 +36,6 @@
|
|||||||
|
|
||||||
typedef long sig_atomic_t;
|
typedef long sig_atomic_t;
|
||||||
|
|
||||||
#if __XSI_VISIBLE
|
|
||||||
/*
|
|
||||||
* Minimum signal stack size. The current signal frame
|
|
||||||
* for Alpha is 808 bytes large.
|
|
||||||
*/
|
|
||||||
#define MINSIGSTKSZ (1024 * 4)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Only the kernel should need these old type definitions.
|
* Only the kernel should need these old type definitions.
|
||||||
*/
|
*/
|
||||||
|
@ -83,4 +83,10 @@
|
|||||||
#define __LONG_BIT 64
|
#define __LONG_BIT 64
|
||||||
#define __WORD_BIT 32
|
#define __WORD_BIT 32
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Minimum signal stack size. The current signal frame
|
||||||
|
* for i386 is 408 bytes large.
|
||||||
|
*/
|
||||||
|
#define __MINSIGSTKSZ (512 * 4)
|
||||||
|
|
||||||
#endif /* !_MACHINE__LIMITS_H_ */
|
#endif /* !_MACHINE__LIMITS_H_ */
|
||||||
|
@ -43,14 +43,6 @@
|
|||||||
|
|
||||||
typedef long sig_atomic_t;
|
typedef long sig_atomic_t;
|
||||||
|
|
||||||
#if __XSI_VISIBLE
|
|
||||||
/*
|
|
||||||
* Minimum signal stack size. The current signal frame
|
|
||||||
* for i386 is 408 bytes large.
|
|
||||||
*/
|
|
||||||
#define MINSIGSTKSZ (512 * 4)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
#include <machine/trap.h> /* codes for SIGILL, SIGFPE */
|
#include <machine/trap.h> /* codes for SIGILL, SIGFPE */
|
||||||
|
|
||||||
|
@ -94,4 +94,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#define __WORD_BIT 32
|
#define __WORD_BIT 32
|
||||||
|
|
||||||
|
/* Minimum signal stack size. */
|
||||||
|
#define __MINSIGSTKSZ (1024 * 4)
|
||||||
|
|
||||||
#endif /* !_MACHINE__LIMITS_H_ */
|
#endif /* !_MACHINE__LIMITS_H_ */
|
||||||
|
@ -39,10 +39,6 @@
|
|||||||
|
|
||||||
typedef long sig_atomic_t;
|
typedef long sig_atomic_t;
|
||||||
|
|
||||||
#if __XSI_VISIBLE
|
|
||||||
#define MINSIGSTKSZ (1024 * 4)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
|
||||||
struct sigcontext {
|
struct sigcontext {
|
||||||
|
@ -94,4 +94,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#define __WORD_BIT 32
|
#define __WORD_BIT 32
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Minimum signal stack size. The current signal frame
|
||||||
|
* for i386 is 408 bytes large.
|
||||||
|
*/
|
||||||
|
#define __MINSIGSTKSZ (512 * 4)
|
||||||
|
|
||||||
#endif /* !_MACHINE__LIMITS_H_ */
|
#endif /* !_MACHINE__LIMITS_H_ */
|
||||||
|
@ -42,14 +42,6 @@
|
|||||||
|
|
||||||
typedef int sig_atomic_t;
|
typedef int sig_atomic_t;
|
||||||
|
|
||||||
#if __XSI_VISIBLE
|
|
||||||
/*
|
|
||||||
* Minimum signal stack size. The current signal frame
|
|
||||||
* for i386 is 408 bytes large.
|
|
||||||
*/
|
|
||||||
#define MINSIGSTKSZ (512 * 4)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
#include <machine/trap.h> /* codes for SIGILL, SIGFPE */
|
#include <machine/trap.h> /* codes for SIGILL, SIGFPE */
|
||||||
|
|
||||||
|
@ -86,4 +86,7 @@
|
|||||||
#define __LONG_BIT 64
|
#define __LONG_BIT 64
|
||||||
#define __WORD_BIT 32
|
#define __WORD_BIT 32
|
||||||
|
|
||||||
|
/* Minimum signal stack size. */
|
||||||
|
#define __MINSIGSTKSZ (3072 * 4)
|
||||||
|
|
||||||
#endif /* !_MACHINE__LIMITS_H_ */
|
#endif /* !_MACHINE__LIMITS_H_ */
|
||||||
|
@ -50,11 +50,6 @@ typedef long sig_atomic_t;
|
|||||||
#define BUS_SEGM_FAULT 30 /* segment protection base */
|
#define BUS_SEGM_FAULT 30 /* segment protection base */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __XSI_VISIBLE
|
|
||||||
/* Minimum signal stack size. */
|
|
||||||
#define MINSIGSTKSZ (3072 * 4)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Information pushed on stack when a signal is delivered.
|
* Information pushed on stack when a signal is delivered.
|
||||||
* This is used by the kernel to restore state following
|
* This is used by the kernel to restore state following
|
||||||
|
@ -93,4 +93,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#define __WORD_BIT 32
|
#define __WORD_BIT 32
|
||||||
|
|
||||||
|
/* Minimum signal stack size. */
|
||||||
|
#define __MINSIGSTKSZ (512 * 4)
|
||||||
|
|
||||||
#endif /* !_MACHINE__LIMITS_H_ */
|
#endif /* !_MACHINE__LIMITS_H_ */
|
||||||
|
@ -37,10 +37,6 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#if __XSI_VISIBLE
|
|
||||||
#define MINSIGSTKSZ (512 * 4)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef int sig_atomic_t;
|
typedef int sig_atomic_t;
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
@ -81,4 +81,7 @@
|
|||||||
#define __LONG_BIT 64
|
#define __LONG_BIT 64
|
||||||
#define __WORD_BIT 32
|
#define __WORD_BIT 32
|
||||||
|
|
||||||
|
/* Minimum signal stack size. */
|
||||||
|
#define __MINSIGSTKSZ (1024 * 4)
|
||||||
|
|
||||||
#endif /* !_MACHINE__LIMITS_H_ */
|
#endif /* !_MACHINE__LIMITS_H_ */
|
||||||
|
@ -38,10 +38,6 @@
|
|||||||
|
|
||||||
typedef long sig_atomic_t;
|
typedef long sig_atomic_t;
|
||||||
|
|
||||||
#if __XSI_VISIBLE
|
|
||||||
#define MINSIGSTKSZ (1024 * 4)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
struct sigcontext {
|
struct sigcontext {
|
||||||
int _dummy;
|
int _dummy;
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
#include <sys/_types.h>
|
#include <sys/_types.h>
|
||||||
#include <sys/_sigset.h>
|
#include <sys/_sigset.h>
|
||||||
|
|
||||||
|
#include <machine/_limits.h> /* __MINSIGSTKSZ */
|
||||||
#include <machine/signal.h> /* sig_atomic_t; trap codes; sigcontext */
|
#include <machine/signal.h> /* sig_atomic_t; trap codes; sigcontext */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -274,6 +275,7 @@ typedef struct {
|
|||||||
|
|
||||||
#define SS_ONSTACK 0x0001 /* take signal on alternate stack */
|
#define SS_ONSTACK 0x0001 /* take signal on alternate stack */
|
||||||
#define SS_DISABLE 0x0004 /* disable taking signals on alternate stack */
|
#define SS_DISABLE 0x0004 /* disable taking signals on alternate stack */
|
||||||
|
#define MINSIGSTKSZ __MINSIGSTKSZ /* minimum stack size */
|
||||||
#define SIGSTKSZ (MINSIGSTKSZ + 32768) /* recommended stack size */
|
#define SIGSTKSZ (MINSIGSTKSZ + 32768) /* recommended stack size */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user