mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Avoid local PLTs.
This commit is contained in:
@@ -15,11 +15,11 @@
|
|||||||
static void
|
static void
|
||||||
close_all_fds (void)
|
close_all_fds (void)
|
||||||
{
|
{
|
||||||
DIR *dir = opendir ("/proc/self/fd");
|
DIR *dir = __opendir ("/proc/self/fd");
|
||||||
if (dir != NULL)
|
if (dir != NULL)
|
||||||
{
|
{
|
||||||
struct dirent64 *d;
|
struct dirent64 *d;
|
||||||
while ((d = readdir64 (dir)) != NULL)
|
while ((d = __readdir64 (dir)) != NULL)
|
||||||
if (isdigit (d->d_name[0]))
|
if (isdigit (d->d_name[0]))
|
||||||
{
|
{
|
||||||
char *endp;
|
char *endp;
|
||||||
@@ -28,7 +28,7 @@ close_all_fds (void)
|
|||||||
close_not_cancel_no_status (fd);
|
close_not_cancel_no_status (fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
closedir (dir);
|
__closedir (dir);
|
||||||
|
|
||||||
int nullfd = open_not_cancel_2 (_PATH_DEVNULL, O_RDONLY);
|
int nullfd = open_not_cancel_2 (_PATH_DEVNULL, O_RDONLY);
|
||||||
assert (nullfd == STDIN_FILENO);
|
assert (nullfd == STDIN_FILENO);
|
||||||
|
Reference in New Issue
Block a user