File Index
Files and directories
Sign in
FILE

vdso32_generic.c

File preview with syntax highlighting.

linux-6.19.14/arch/parisc/kernel/vdso32/vdso32_generic.c C
 1// SPDX-License-Identifier: GPL-2.0
 2
 3#include "asm/unistd.h"
 4#include <linux/types.h>
 5#include <uapi/asm/unistd_32.h>
 6
 7struct timezone;
 8struct old_timespec32;
 9struct __kernel_timespec;
10struct __kernel_old_timeval;
11
12/* forward declarations */
13int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
14int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts);
15int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts);
16
17
18int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
19			struct timezone *tz)
20{
21	return syscall2(__NR_gettimeofday, (long)tv, (long)tz);
22}
23
24int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts)
25{
26	return syscall2(__NR_clock_gettime, (long)clock, (long)ts);
27}
28
29int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts)
30{
31	return syscall2(__NR_clock_gettime64, (long)clock, (long)ts);
32}
~/ Read-only file preview.