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:
Stefan Farfeleder 2005-08-20 16:44:41 +00:00
parent d599e39db8
commit a1f85d7f83
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149337
15 changed files with 32 additions and 41 deletions

View File

@ -87,4 +87,10 @@
#define __LONG_BIT 64
#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_ */

View File

@ -36,14 +36,6 @@
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.
*/

View File

@ -83,4 +83,10 @@
#define __LONG_BIT 64
#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_ */

View File

@ -43,14 +43,6 @@
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
#include <machine/trap.h> /* codes for SIGILL, SIGFPE */

View File

@ -94,4 +94,7 @@
#endif
#define __WORD_BIT 32
/* Minimum signal stack size. */
#define __MINSIGSTKSZ (1024 * 4)
#endif /* !_MACHINE__LIMITS_H_ */

View File

@ -39,10 +39,6 @@
typedef long sig_atomic_t;
#if __XSI_VISIBLE
#define MINSIGSTKSZ (1024 * 4)
#endif
#if __BSD_VISIBLE
struct sigcontext {

View File

@ -94,4 +94,10 @@
#endif
#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_ */

View File

@ -42,14 +42,6 @@
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
#include <machine/trap.h> /* codes for SIGILL, SIGFPE */

View File

@ -86,4 +86,7 @@
#define __LONG_BIT 64
#define __WORD_BIT 32
/* Minimum signal stack size. */
#define __MINSIGSTKSZ (3072 * 4)
#endif /* !_MACHINE__LIMITS_H_ */

View File

@ -50,11 +50,6 @@ typedef long sig_atomic_t;
#define BUS_SEGM_FAULT 30 /* segment protection base */
#endif
#if __XSI_VISIBLE
/* Minimum signal stack size. */
#define MINSIGSTKSZ (3072 * 4)
#endif
/*
* Information pushed on stack when a signal is delivered.
* This is used by the kernel to restore state following

View File

@ -93,4 +93,7 @@
#endif
#define __WORD_BIT 32
/* Minimum signal stack size. */
#define __MINSIGSTKSZ (512 * 4)
#endif /* !_MACHINE__LIMITS_H_ */

View File

@ -37,10 +37,6 @@
#include <sys/cdefs.h>
#if __XSI_VISIBLE
#define MINSIGSTKSZ (512 * 4)
#endif
typedef int sig_atomic_t;
#if __BSD_VISIBLE

View File

@ -81,4 +81,7 @@
#define __LONG_BIT 64
#define __WORD_BIT 32
/* Minimum signal stack size. */
#define __MINSIGSTKSZ (1024 * 4)
#endif /* !_MACHINE__LIMITS_H_ */

View File

@ -38,10 +38,6 @@
typedef long sig_atomic_t;
#if __XSI_VISIBLE
#define MINSIGSTKSZ (1024 * 4)
#endif
#if __BSD_VISIBLE
struct sigcontext {
int _dummy;

View File

@ -42,6 +42,7 @@
#include <sys/_types.h>
#include <sys/_sigset.h>
#include <machine/_limits.h> /* __MINSIGSTKSZ */
#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_DISABLE 0x0004 /* disable taking signals on alternate stack */
#define MINSIGSTKSZ __MINSIGSTKSZ /* minimum stack size */
#define SIGSTKSZ (MINSIGSTKSZ + 32768) /* recommended stack size */
#endif