Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/arch/mips/vdso/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  vgettimeofday.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * MIPS64 and compat userspace implementations of gettimeofday()
 * and similar.
 *
 * Copyright (C) 2015 Imagination Technologies
 * Copyright (C) 2018 ARM Limited
 *
 */

#include <linux/time.h>
#include <linux/types.h>
#include <vdso/gettime.h>

#if _MIPS_SIM != _MIPS_SIM_ABI64
int __vdso_clock_gettime(clockid_t clock,
    struct old_timespec32 *ts)
{
 return __cvdso_clock_gettime32(clock, ts);
}

#ifdef CONFIG_MIPS_CLOCK_VSYSCALL

/*
 * This is behind the ifdef so that we don't provide the symbol when there's no
 * possibility of there being a usable clocksource, because there's nothing we
 * can do without it. When libc fails the symbol lookup it should fall back on
 * the standard syscall path.
 */

int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
   struct timezone *tz)
{
 return __cvdso_gettimeofday(tv, tz);
}

#endif /* CONFIG_MIPS_CLOCK_VSYSCALL */

int __vdso_clock_getres(clockid_t clock_id,
   struct old_timespec32 *res)
{
 return __cvdso_clock_getres_time32(clock_id, res);
}

int __vdso_clock_gettime64(clockid_t clock,
      struct __kernel_timespec *ts)
{
 return __cvdso_clock_gettime(clock, ts);
}

#else

int __vdso_clock_gettime(clockid_t clock,
    struct __kernel_timespec *ts)
{
 return __cvdso_clock_gettime(clock, ts);
}

#ifdef CONFIG_MIPS_CLOCK_VSYSCALL

/*
 * This is behind the ifdef so that we don't provide the symbol when there's no
 * possibility of there being a usable clocksource, because there's nothing we
 * can do without it. When libc fails the symbol lookup it should fall back on
 * the standard syscall path.
 */

int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
   struct timezone *tz)
{
 return __cvdso_gettimeofday(tv, tz);
}

#endif /* CONFIG_MIPS_CLOCK_VSYSCALL */

int __vdso_clock_getres(clockid_t clock_id,
   struct __kernel_timespec *res)
{
 return __cvdso_clock_getres(clock_id, res);
}

#endif

Messung V0.5
C=92 H=93 G=92

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.