.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2011 Richard Weinberger <richrd@nod.at> |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License version 2 as |
---|
6 | | - * published by the Free Software Foundation. |
---|
7 | 4 | * |
---|
8 | 5 | * This vDSO turns all calls into a syscall so that UML can trap them. |
---|
9 | 6 | */ |
---|
.. | .. |
---|
16 | 13 | #include <linux/getcpu.h> |
---|
17 | 14 | #include <asm/unistd.h> |
---|
18 | 15 | |
---|
19 | | -int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) |
---|
| 16 | +int __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts) |
---|
20 | 17 | { |
---|
21 | 18 | long ret; |
---|
22 | 19 | |
---|
.. | .. |
---|
25 | 22 | |
---|
26 | 23 | return ret; |
---|
27 | 24 | } |
---|
28 | | -int clock_gettime(clockid_t, struct timespec *) |
---|
| 25 | +int clock_gettime(clockid_t, struct __kernel_old_timespec *) |
---|
29 | 26 | __attribute__((weak, alias("__vdso_clock_gettime"))); |
---|
30 | 27 | |
---|
31 | | -int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) |
---|
| 28 | +int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) |
---|
32 | 29 | { |
---|
33 | 30 | long ret; |
---|
34 | 31 | |
---|
.. | .. |
---|
37 | 34 | |
---|
38 | 35 | return ret; |
---|
39 | 36 | } |
---|
40 | | -int gettimeofday(struct timeval *, struct timezone *) |
---|
| 37 | +int gettimeofday(struct __kernel_old_timeval *, struct timezone *) |
---|
41 | 38 | __attribute__((weak, alias("__vdso_gettimeofday"))); |
---|
42 | 39 | |
---|
43 | | -time_t __vdso_time(time_t *t) |
---|
| 40 | +__kernel_old_time_t __vdso_time(__kernel_old_time_t *t) |
---|
44 | 41 | { |
---|
45 | 42 | long secs; |
---|
46 | 43 | |
---|
.. | .. |
---|
50 | 47 | |
---|
51 | 48 | return secs; |
---|
52 | 49 | } |
---|
53 | | -int time(time_t *t) __attribute__((weak, alias("__vdso_time"))); |
---|
| 50 | +__kernel_old_time_t time(__kernel_old_time_t *t) __attribute__((weak, alias("__vdso_time"))); |
---|
54 | 51 | |
---|
55 | 52 | long |
---|
56 | 53 | __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused) |
---|