Fix from Lionel Ulmer to not have an infinite loop/stack overflow

with sigaction on glibc 2.1.3.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@214
This commit is contained in:
Julian Seward 2002-05-04 19:49:21 +00:00
parent 3cc89028c1
commit 15f93fef49
3 changed files with 33 additions and 6 deletions

View File

@ -869,11 +869,19 @@ void* (*__libc_internal_tsd_get)
#include <sys/types.h>
#include <sys/socket.h>
#ifdef GLIBC_2_1
extern
int __sigaction
(int signum,
const struct sigaction *act,
struct sigaction *oldact);
#else
extern
int __libc_sigaction
(int signum,
const struct sigaction *act,
struct sigaction *oldact);
#endif
int sigaction(int signum,
const struct sigaction *act,
struct sigaction *oldact)
@ -1415,9 +1423,10 @@ strong_alias(__pthread_key_create, pthread_key_create)
strong_alias(__pthread_getspecific, pthread_getspecific)
strong_alias(__pthread_setspecific, pthread_setspecific)
//strong_alias(__sigaction, sigaction)
#ifndef GLIBC_2_1
strong_alias(sigaction, __sigaction)
#endif
strong_alias(close, __close)
strong_alias(fcntl, __fcntl)
strong_alias(lseek, __lseek)

View File

@ -869,11 +869,19 @@ void* (*__libc_internal_tsd_get)
#include <sys/types.h>
#include <sys/socket.h>
#ifdef GLIBC_2_1
extern
int __sigaction
(int signum,
const struct sigaction *act,
struct sigaction *oldact);
#else
extern
int __libc_sigaction
(int signum,
const struct sigaction *act,
struct sigaction *oldact);
#endif
int sigaction(int signum,
const struct sigaction *act,
struct sigaction *oldact)
@ -1415,9 +1423,10 @@ strong_alias(__pthread_key_create, pthread_key_create)
strong_alias(__pthread_getspecific, pthread_getspecific)
strong_alias(__pthread_setspecific, pthread_setspecific)
//strong_alias(__sigaction, sigaction)
#ifndef GLIBC_2_1
strong_alias(sigaction, __sigaction)
#endif
strong_alias(close, __close)
strong_alias(fcntl, __fcntl)
strong_alias(lseek, __lseek)

View File

@ -869,11 +869,19 @@ void* (*__libc_internal_tsd_get)
#include <sys/types.h>
#include <sys/socket.h>
#ifdef GLIBC_2_1
extern
int __sigaction
(int signum,
const struct sigaction *act,
struct sigaction *oldact);
#else
extern
int __libc_sigaction
(int signum,
const struct sigaction *act,
struct sigaction *oldact);
#endif
int sigaction(int signum,
const struct sigaction *act,
struct sigaction *oldact)
@ -1415,9 +1423,10 @@ strong_alias(__pthread_key_create, pthread_key_create)
strong_alias(__pthread_getspecific, pthread_getspecific)
strong_alias(__pthread_setspecific, pthread_setspecific)
//strong_alias(__sigaction, sigaction)
#ifndef GLIBC_2_1
strong_alias(sigaction, __sigaction)
#endif
strong_alias(close, __close)
strong_alias(fcntl, __fcntl)
strong_alias(lseek, __lseek)