MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _rename_r

Function _rename_r

components/libc/compilers/newlib/syscalls.c:255–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255int _rename_r(struct _reent *ptr, const char *old, const char *new)
256{
257#ifdef DFS_USING_POSIX
258 int rc;
259 rc = rename(old, new);
260 return rc;
261#else
262 LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS);
263 ptr->_errno = ENOTSUP;
264 return -1;
265#endif /* DFS_USING_POSIX */
266}
267
268int _stat_r(struct _reent *ptr, const char *file, struct stat *pstat)
269{

Callers

nothing calls this directly

Calls 1

renameFunction · 0.50

Tested by

no test coverage detected