mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Fix check-localplt regressions on sparc.
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include inttypes.h (__get_clockfreq_via_proc_openprom): Use __open, __read, and __close rather than their public counterparts.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2012-11-11 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
|
||||||
|
inttypes.h
|
||||||
|
(__get_clockfreq_via_proc_openprom): Use __open, __read, and
|
||||||
|
__close rather than their public counterparts.
|
||||||
|
|
||||||
2012-11-10 Joseph Myers <joseph@codesourcery.com>
|
2012-11-10 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
|
* conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <libc-internal.h>
|
#include <libc-internal.h>
|
||||||
#include <asm/openpromio.h>
|
#include <asm/openpromio.h>
|
||||||
@ -123,14 +124,14 @@ __get_clockfreq_via_proc_openprom (void)
|
|||||||
int clkfreq_fd;
|
int clkfreq_fd;
|
||||||
|
|
||||||
__stpcpy (prop, "/clock-frequency");
|
__stpcpy (prop, "/clock-frequency");
|
||||||
clkfreq_fd = open (node, O_RDONLY);
|
clkfreq_fd = __open (node, O_RDONLY);
|
||||||
if (clkfreq_fd != -1)
|
if (clkfreq_fd != -1)
|
||||||
{
|
{
|
||||||
if (read (clkfreq_fd, type_string,
|
if (__read (clkfreq_fd, type_string,
|
||||||
sizeof (type_string)) > 0)
|
sizeof (type_string)) > 0)
|
||||||
result = (hp_timing_t)
|
result = (hp_timing_t)
|
||||||
strtoumax (type_string, NULL, 16);
|
strtoumax (type_string, NULL, 16);
|
||||||
close (clkfreq_fd);
|
__close (clkfreq_fd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
__close (fd);
|
__close (fd);
|
||||||
|
Reference in New Issue
Block a user