mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 18:56:10 +00:00
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:
parent
3cc89028c1
commit
15f93fef49
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user