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