mirror of git://sourceware.org/git/glibc.git
Update.
* sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid locking when using mount tab file.
This commit is contained in:
parent
5842a7562c
commit
6f6867815c
|
|
@ -1,5 +1,8 @@
|
||||||
2002-09-20 Ulrich Drepper <drepper@redhat.com>
|
2002-09-20 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
|
||||||
|
locking when using mount tab file.
|
||||||
|
|
||||||
* elf/dl-init.c (_dl_init): Fix test of the size of the
|
* elf/dl-init.c (_dl_init): Fix test of the size of the
|
||||||
preinit_array section.
|
preinit_array section.
|
||||||
(call_init): Optimize access to DT_INIT_ARRAY entry a bit.
|
(call_init): Optimize access to DT_INIT_ARRAY entry a bit.
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,9 @@ get_proc_path (char *buffer, size_t bufsize)
|
||||||
fp = __setmntent (_PATH_MNTTAB, "r");
|
fp = __setmntent (_PATH_MNTTAB, "r");
|
||||||
if (fp != NULL)
|
if (fp != NULL)
|
||||||
{
|
{
|
||||||
|
/* We don't need locking. */
|
||||||
|
(void) __fsetlocking (fp, FSETLOCKING_BYCALLER);
|
||||||
|
|
||||||
while ((entry = __getmntent_r (fp, &mount_point, buffer, bufsize))
|
while ((entry = __getmntent_r (fp, &mount_point, buffer, bufsize))
|
||||||
!= NULL)
|
!= NULL)
|
||||||
if (strcmp (mount_point.mnt_type, "proc") == 0)
|
if (strcmp (mount_point.mnt_type, "proc") == 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue