|
Packit Service |
104baf |
/* Get the current value of a clock. Stub version.
|
|
Packit Service |
104baf |
Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
|
Packit Service |
104baf |
This file is part of the GNU C Library.
|
|
Packit Service |
104baf |
|
|
Packit Service |
104baf |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
104baf |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
104baf |
License as published by the Free Software Foundation; either
|
|
Packit Service |
104baf |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
104baf |
|
|
Packit Service |
104baf |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
104baf |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
104baf |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
104baf |
Lesser General Public License for more details.
|
|
Packit Service |
104baf |
|
|
Packit Service |
104baf |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
104baf |
License along with the GNU C Library; if not, see
|
|
Packit Service |
104baf |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
104baf |
|
|
Packit Service |
104baf |
#include <errno.h>
|
|
Packit Service |
104baf |
#include <time.h>
|
|
Packit Service |
a656f2 |
#include <shlib-compat.h>
|
|
Packit Service |
104baf |
|
|
Packit Service |
104baf |
/* Get current value of CLOCK and store it in TP. */
|
|
Packit Service |
104baf |
int
|
|
Packit Service |
104baf |
__clock_gettime (clockid_t clock_id, struct timespec *tp)
|
|
Packit Service |
104baf |
{
|
|
Packit Service |
104baf |
__set_errno (ENOSYS);
|
|
Packit Service |
104baf |
return -1;
|
|
Packit Service |
104baf |
}
|
|
Packit Service |
104baf |
libc_hidden_def (__clock_gettime)
|
|
Packit Service |
a656f2 |
|
|
Packit Service |
a656f2 |
versioned_symbol (libc, __clock_gettime, clock_gettime, GLIBC_2_17);
|
|
Packit Service |
a656f2 |
/* clock_gettime moved to libc in version 2.17;
|
|
Packit Service |
a656f2 |
old binaries may expect the symbol version it had in librt. */
|
|
Packit Service |
a656f2 |
#if SHLIB_COMPAT (libc, GLIBC_2_2, GLIBC_2_17)
|
|
Packit Service |
a656f2 |
strong_alias (__clock_gettime, __clock_gettime_2);
|
|
Packit Service |
a656f2 |
compat_symbol (libc, __clock_gettime_2, clock_gettime, GLIBC_2_2);
|
|
Packit Service |
a656f2 |
#endif
|
|
Packit Service |
a656f2 |
|
|
Packit Service |
104baf |
stub_warning (clock_gettime)
|