mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(picolibc): add times() stub
This commit is contained in:
@@ -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
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@@ -62,6 +62,11 @@ int gettimeofday(struct timeval *restrict tv, void *restrict tz)
|
|||||||
return _gettimeofday_r(__getreent(), tv, tz);
|
return _gettimeofday_r(__getreent(), tv, tz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clock_t times(struct tms *ptms)
|
||||||
|
{
|
||||||
|
return _times_r(__getreent(), ptms);
|
||||||
|
}
|
||||||
|
|
||||||
int unlink(const char *path)
|
int unlink(const char *path)
|
||||||
{
|
{
|
||||||
return _unlink_r(__getreent(), path);
|
return _unlink_r(__getreent(), path);
|
||||||
|
|||||||
Reference in New Issue
Block a user