File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
1212#include <sys/time.h>
1313#include <sys/stat.h>
1414
15+ #if CONFIG_IDF_TOOLCHAIN_GCC
16+ #include <sys/statvfs.h>
17+ #endif
18+
1519#if CONFIG_LIBC_PICOLIBC
1620int open (const char * pathname , int flags , ...)
1721{
@@ -127,6 +131,22 @@ int system(const char* str)
127131 return _system_r (__getreent (), str );
128132}
129133
134+ #if CONFIG_IDF_TOOLCHAIN_GCC
135+ int statvfs (const char * restrict path , struct statvfs * restrict buf )
136+ {
137+ /* TODO IDF-9879 */
138+ errno = ENOSYS ;
139+ return -1 ;
140+ }
141+
142+ int fstatvfs (int fd , struct statvfs * buf )
143+ {
144+ /* TODO IDF-9879 */
145+ errno = ENOSYS ;
146+ return -1 ;
147+ }
148+ #endif
149+
130150void esp_libc_include_syscalls_impl (void )
131151{
132152}
You can’t perform that action at this time.
0 commit comments