diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 15:19:34 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 15:20:08 +0000 |
commit | 72b2e72dc0f0bcc64f3a91f1e1d5986c186b7880 (patch) | |
tree | f9e635b447789995362b8aca162ad6d855bb28c2 /sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c | |
parent | 2838aa1289bec5055c33d2c00bfe6e3ed3d52e0f (diff) | |
parent | 9f9bd6ac848e9acee2c1072cdb14955c1abb8725 (diff) |
Merge commit 'refs/top-bases/t/UTIME' into t/UTIME
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c index 12a39b6865..3a2216021b 100644 --- a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c +++ b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c @@ -1,5 +1,5 @@ /* Get frequency of the system processor. powerpc/Linux version. - Copyright (C) 2000-2016 Free Software Foundation, Inc. + Copyright (C) 2000-2018 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 @@ -21,7 +21,6 @@ #include <stdint.h> #include <string.h> #include <unistd.h> -#include <libc-internal.h> #include <sysdep.h> #include <libc-vdso.h> #include <not-cancel.h> @@ -41,7 +40,7 @@ __get_clockfreq (void) contains at least one line like: timebase : 33333333 We search for this line and convert the number into an integer. */ - int fd = open_not_cancel_2 ("/proc/cpuinfo", O_RDONLY); + int fd = __open_nocancel ("/proc/cpuinfo", O_RDONLY); if (__glibc_likely (fd != -1)) return result; |