diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-10-24 14:50:46 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-10-24 14:50:46 -0700 |
commit | 6e6249d0b461b952d0f544792372663feb6d792a (patch) | |
tree | 555d1ac3a5e2ca9030d15f2e1760aea1a2e69ba7 /ports/sysdeps/unix/sysv/linux/ia64 | |
parent | 0cae3f4b033e441d820f4521fa5736e4e6e4d713 (diff) | |
download | glibc-6e6249d0b461b952d0f544792372663feb6d792a.tar.gz |
BZ#14743: Move clock_* symbols from librt to libc.
Diffstat (limited to 'ports/sysdeps/unix/sysv/linux/ia64')
-rw-r--r-- | ports/sysdeps/unix/sysv/linux/ia64/get_clockfreq.c | 8 | ||||
-rw-r--r-- | ports/sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/ia64/get_clockfreq.c b/ports/sysdeps/unix/sysv/linux/ia64/get_clockfreq.c index 4c1777a516..cb8025ebe0 100644 --- a/ports/sysdeps/unix/sysv/linux/ia64/get_clockfreq.c +++ b/ports/sysdeps/unix/sysv/linux/ia64/get_clockfreq.c @@ -1,5 +1,5 @@ /* Get frequency of the system processor. IA-64/Linux version. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -37,7 +37,7 @@ __get_clockfreq (void) if (result != 0) return result; - fd = open ("/proc/cpuinfo", O_RDONLY); + fd = __open ("/proc/cpuinfo", O_RDONLY); if (__builtin_expect (fd != -1, 1)) { /* XXX AFAIK the /proc filesystem can generate "files" only up @@ -45,7 +45,7 @@ __get_clockfreq (void) char buf[4096]; ssize_t n; - n = read (fd, buf, sizeof buf); + n = __read (fd, buf, sizeof buf); if (__builtin_expect (n, 1) > 0) { char *mhz = memmem (buf, n, "itc MHz", 7); @@ -81,7 +81,7 @@ __get_clockfreq (void) } } - close (fd); + __close (fd); } return result; diff --git a/ports/sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist b/ports/sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist index b73f5ca8f7..b3510fe2a2 100644 --- a/ports/sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist +++ b/ports/sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist @@ -80,6 +80,11 @@ GLIBC_2.16 timespec_get F GLIBC_2.17 GLIBC_2.17 A + clock_getcpuclockid F + clock_getres F + clock_gettime F + clock_nanosleep F + clock_settime F secure_getenv F GLIBC_2.2 GLIBC_2.2 A |