From 5c3514cfd962e28739c63416d180d547e4fccbca Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Wed, 29 Apr 2026 15:15:00 +0700 Subject: [PATCH] fix(picolibc): add times() stub --- components/esp_libc/src/syscalls.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/esp_libc/src/syscalls.c b/components/esp_libc/src/syscalls.c index 72f3804be26..3e2afb3f51f 100644 --- a/components/esp_libc/src/syscalls.c +++ b/components/esp_libc/src/syscalls.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -66,6 +66,11 @@ int gettimeofday(struct timeval *restrict tv, void *restrict tz) return _gettimeofday_r(__getreent(), tv, tz); } +clock_t times(struct tms *ptms) +{ + return _times_r(__getreent(), ptms); +} + int unlink(const char *path) { return _unlink_r(__getreent(), path);