diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2025-04-16 14:06:23 +0200 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2025-04-19 14:22:28 +0200 |
| commit | face777a442bfb07017adf935dbb738a3504fdd2 (patch) | |
| tree | 5a37e86d0b0d5b9c067bd5dcf601b6bac8604c68 /tools/include/nolibc/sys.h | |
| parent | 0fd55773f47124ee27a1d201bb07649a056c58cc (diff) | |
tools/nolibc: move gettimeofday() to sys/time.h
This is the location regular userspace expects this definition.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250416-nolibc-split-sys-v1-8-a069a3f1d145@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools/include/nolibc/sys.h')
| -rw-r--r-- | tools/include/nolibc/sys.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index c76dc8014728..aab0685af84f 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -488,27 +488,6 @@ int getpagesize(void) /* - * int gettimeofday(struct timeval *tv, struct timezone *tz); - */ - -static __attribute__((unused)) -int sys_gettimeofday(struct timeval *tv, struct timezone *tz) -{ -#ifdef __NR_gettimeofday - return my_syscall2(__NR_gettimeofday, tv, tz); -#else - return __nolibc_enosys(__func__, tv, tz); -#endif -} - -static __attribute__((unused)) -int gettimeofday(struct timeval *tv, struct timezone *tz) -{ - return __sysret(sys_gettimeofday(tv, tz)); -} - - -/* * uid_t getuid(void); */ |