From 94e9dd95c28ad426f740fbd1629837ee48492521 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 16 Dec 2005 00:28:30 +0000 Subject: Convert some users --- libc/sysdeps/linux/common/getcwd.c | 3 ++- libc/sysdeps/linux/common/ssp.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/getcwd.c b/libc/sysdeps/linux/common/getcwd.c index 874474d87..a44647d67 100644 --- a/libc/sysdeps/linux/common/getcwd.c +++ b/libc/sysdeps/linux/common/getcwd.c @@ -2,6 +2,7 @@ #define opendir __opendir #define closedir __closedir +#define readdir __readdir #include #include @@ -66,7 +67,7 @@ static char *search_dir(dev_t this_dev, ino_t this_ino, char *path_buf, int path goto oops; } - while ((d = __readdir(dp)) != 0) { + while ((d = readdir(dp)) != 0) { #ifdef FAST_DIR_SEARCH_POSSIBLE if (slow_search || this_ino == d->d_ino) { #endif diff --git a/libc/sysdeps/linux/common/ssp.c b/libc/sysdeps/linux/common/ssp.c index 05e53c29d..ee9938650 100644 --- a/libc/sysdeps/linux/common/ssp.c +++ b/libc/sysdeps/linux/common/ssp.c @@ -71,7 +71,7 @@ static __always_inline void ssp_write(int fd, const char *msg1, const char *msg2 static __always_inline attribute_noreturn void terminate(void) { (void) kill(__getpid(), SSP_SIGTYPE); - _exit(127); + _exit_internal(127); } void attribute_noreturn __stack_smash_handler(char func[], int damaged __attribute__ ((unused))); -- cgit v1.2.3