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