Skip to content

Commit

Permalink
Avoid local PLTs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Nov 25, 2009
1 parent 139ee08 commit 0f62268
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sysdeps/unix/sysv/linux/grantpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
static void
close_all_fds (void)
{
DIR *dir = opendir ("/proc/self/fd");
DIR *dir = __opendir ("/proc/self/fd");
if (dir != NULL)
{
struct dirent64 *d;
while ((d = readdir64 (dir)) != NULL)
while ((d = __readdir64 (dir)) != NULL)
if (isdigit (d->d_name[0]))
{
char *endp;
Expand All @@ -28,7 +28,7 @@ close_all_fds (void)
close_not_cancel_no_status (fd);
}

closedir (dir);
__closedir (dir);

int nullfd = open_not_cancel_2 (_PATH_DEVNULL, O_RDONLY);
assert (nullfd == STDIN_FILENO);
Expand Down

0 comments on commit 0f62268

Please sign in to comment.