fix(picolibc): add times() stub

This commit is contained in:
Alexey Lapshin
2026-05-12 18:05:08 +08:00
committed by BOT
parent 8e8e9f5545
commit 5c3514cfd9
+6 -1
View File
@@ -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);