2015-01-03 00:28:19 +08:00
|
|
|
/* Copyright (C) 2012-2015 Free Software Foundation, Inc.
|
2012-10-26 21:21:08 +08:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with the GNU C Library. If not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
|
|
|
|
|
|
|
#ifdef SHARED
|
|
|
|
#include <dl-vdso.h>
|
2015-04-14 03:38:16 +08:00
|
|
|
#include <libc-vdso.h>
|
2012-10-26 21:21:08 +08:00
|
|
|
|
2015-01-06 01:06:15 +08:00
|
|
|
struct syscall_return_value (*__vdso_gettimeofday) (struct timeval *, void *)
|
|
|
|
attribute_hidden;
|
2012-10-26 21:21:08 +08:00
|
|
|
|
2015-01-06 01:06:15 +08:00
|
|
|
struct syscall_return_value (*__vdso_clock_gettime) (clockid_t,
|
|
|
|
struct timespec *)
|
2014-10-02 03:10:04 +08:00
|
|
|
__attribute__ ((nocommon));
|
|
|
|
strong_alias (__vdso_clock_gettime, __GI___vdso_clock_gettime attribute_hidden)
|
|
|
|
|
|
|
|
|
2012-10-26 21:21:08 +08:00
|
|
|
static inline void
|
|
|
|
_libc_vdso_platform_setup (void)
|
|
|
|
{
|
|
|
|
PREPARE_VERSION (linux26, "LINUX_2.6", 61765110);
|
|
|
|
__vdso_gettimeofday = _dl_vdso_vsym ("__vdso_gettimeofday", &linux26);
|
2014-10-02 03:10:04 +08:00
|
|
|
__vdso_clock_gettime = _dl_vdso_vsym ("__vdso_clock_gettime", &linux26);
|
2012-10-26 21:21:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#define VDSO_SETUP _libc_vdso_platform_setup
|
|
|
|
#endif
|
|
|
|
|
2012-10-31 02:11:54 +08:00
|
|
|
#include <csu/init-first.c>
|