Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
2001-07-17  Ulrich Drepper  <drepper@redhat.com>

	* elf/ldconfig.c (parse_conf): Disable implicit locking for the
	stream.  Remove some unnecessary initializers.
  • Loading branch information
Ulrich Drepper committed Jul 17, 2001
1 parent 0cfbb8c commit c96873d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2001-07-17 Ulrich Drepper <drepper@redhat.com>

* elf/ldconfig.c (parse_conf): Disable implicit locking for the
stream. Remove some unnecessary initializers.

2001-07-17 Andreas Jaeger <aj@suse.de>

* elf/ldconfig.c: Add new variable hwcap_mask to honour LD_HWCAP_MASK.
Expand Down
12 changes: 8 additions & 4 deletions elf/ldconfig.c
Expand Up @@ -26,6 +26,7 @@
#include <inttypes.h>
#include <libintl.h>
#include <stdio.h>
#include <stdio_ext.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Expand Down Expand Up @@ -77,10 +78,10 @@ static struct dir_entry *dir_entries;

/* Flags for different options. */
/* Print Cache. */
static int opt_print_cache = 0;
static int opt_print_cache;

/* Be verbose. */
int opt_verbose = 0;
int opt_verbose;

/* Format to support. */
/* 0: only libc5/glibc2; 1: both; 2: only glibc 2.2. */
Expand All @@ -93,13 +94,13 @@ static int opt_build_cache = 1;
static int opt_link = 1;

/* Only process directories specified on the command line. */
static int opt_only_cline = 0;
static int opt_only_cline;

/* Path to root for chroot. */
static char *opt_chroot;

/* Manually link given shared libraries. */
static int opt_manual_link = 0;
static int opt_manual_link;

/* Cache file to use. */
static char *cache_file;
Expand Down Expand Up @@ -908,6 +909,9 @@ parse_conf (const char *filename)
return;
}

/* No threads use this stream. */
__fsetlocking (file, FSETLOCKING_BYCALLER);

if (canon != filename)
free ((char *) canon);

Expand Down

0 comments on commit c96873d

Please sign in to comment.