Blame rt/clock_gettime.c

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