* cygtls.h (_local_storage::signamebuf): Increase size to prevent overflow on

really odd values.
This commit is contained in:
Christopher Faylor 2004-02-03 22:04:27 +00:00
parent c571716c64
commit 06615351b1
3 changed files with 39 additions and 34 deletions

View File

@ -1,7 +1,12 @@
2004-02-03 Christopher Faylor <cgf@redhat.com>
* cygtls.h (_local_storage::signamebuf): Increase size to prevent
overflow on really odd values.
2004-02-03 Christopher Faylor <cgf@redhat.com> 2004-02-03 Christopher Faylor <cgf@redhat.com>
* Makefile.in (DLL_OFILES): Add strsig.o. * Makefile.in (DLL_OFILES): Add strsig.o.
* cygtls.h (_local_storage::signamebuf) New element. * cygtls.h (_local_storage::signamebuf): New element.
* sysconf.cc (sysconf): Implement _SC_RTSIG_MAX. * sysconf.cc (sysconf): Implement _SC_RTSIG_MAX.
* tlsoffset.h: Regenerate. * tlsoffset.h: Regenerate.
* include/limits.h (_POSIX_RTSIG_MAX): New define. * include/limits.h (_POSIX_RTSIG_MAX): New define.

View File

@ -82,7 +82,7 @@ struct _local_storage
struct protoent *protoent_buf; struct protoent *protoent_buf;
struct servent *servent_buf; struct servent *servent_buf;
struct hostent *hostent_buf; struct hostent *hostent_buf;
char signamebuf[sizeof ("Unknown signal XX")]; char signamebuf[sizeof ("Unknown signal 4294967295 ")];
}; };
/* Please keep this file simple. Changes to the below structure may require /* Please keep this file simple. Changes to the below structure may require

View File

@ -1,21 +1,21 @@
//;# autogenerated: Do not edit. //;# autogenerated: Do not edit.
//; $tls::func = -3724; //; $tls::func = -3736;
//; $tls::saved_errno = -3720; //; $tls::saved_errno = -3732;
//; $tls::sa_flags = -3716; //; $tls::sa_flags = -3728;
//; $tls::oldmask = -3712; //; $tls::oldmask = -3724;
//; $tls::newmask = -3708; //; $tls::newmask = -3720;
//; $tls::event = -3704; //; $tls::event = -3716;
//; $tls::errno_addr = -3700; //; $tls::errno_addr = -3712;
//; $tls::initialized = -3696; //; $tls::initialized = -3708;
//; $tls::sigmask = -3692; //; $tls::sigmask = -3704;
//; $tls::sigwait_mask = -3688; //; $tls::sigwait_mask = -3700;
//; $tls::sigwait_info = -3684; //; $tls::sigwait_info = -3696;
//; $tls::threadkill = -3680; //; $tls::threadkill = -3692;
//; $tls::infodata = -3676; //; $tls::infodata = -3688;
//; $tls::tid = -3528; //; $tls::tid = -3540;
//; $tls::local_clib = -3524; //; $tls::local_clib = -3536;
//; $tls::locals = -2596; //; $tls::locals = -2608;
//; $tls::prev = -1040; //; $tls::prev = -1040;
//; $tls::next = -1036; //; $tls::next = -1036;
//; $tls::stackptr = -1032; //; $tls::stackptr = -1032;
@ -24,22 +24,22 @@
//; $tls::padding = 0; //; $tls::padding = 0;
//; __DATA__ //; __DATA__
#define tls_func (-3724) #define tls_func (-3736)
#define tls_saved_errno (-3720) #define tls_saved_errno (-3732)
#define tls_sa_flags (-3716) #define tls_sa_flags (-3728)
#define tls_oldmask (-3712) #define tls_oldmask (-3724)
#define tls_newmask (-3708) #define tls_newmask (-3720)
#define tls_event (-3704) #define tls_event (-3716)
#define tls_errno_addr (-3700) #define tls_errno_addr (-3712)
#define tls_initialized (-3696) #define tls_initialized (-3708)
#define tls_sigmask (-3692) #define tls_sigmask (-3704)
#define tls_sigwait_mask (-3688) #define tls_sigwait_mask (-3700)
#define tls_sigwait_info (-3684) #define tls_sigwait_info (-3696)
#define tls_threadkill (-3680) #define tls_threadkill (-3692)
#define tls_infodata (-3676) #define tls_infodata (-3688)
#define tls_tid (-3528) #define tls_tid (-3540)
#define tls_local_clib (-3524) #define tls_local_clib (-3536)
#define tls_locals (-2596) #define tls_locals (-2608)
#define tls_prev (-1040) #define tls_prev (-1040)
#define tls_next (-1036) #define tls_next (-1036)
#define tls_stackptr (-1032) #define tls_stackptr (-1032)