Home
last modified time | relevance | path

Searched refs:newpath (Results 1 – 3 of 3) sorted by relevance

/littlefs-3.7.0-3.6.0/tests/
Dtest_dirs.toml153 char newpath[128];
155 sprintf(newpath, "tedd%03d", i);
156 lfs_rename(&lfs, oldpath, newpath) => 0;
227 char newpath[128];
229 sprintf(newpath, "hello%03d", i);
230 // YES this can overwrite an existing newpath
231 lfs_rename(&lfs, oldpath, newpath) => 0;
411 char newpath[128];
413 sprintf(newpath, "tedd%03d", i);
414 lfs_rename(&lfs, oldpath, newpath) => 0;
[all …]
/littlefs-3.7.0-3.6.0/
Dlfs.h499 int lfs_rename(lfs_t *lfs, const char *oldpath, const char *newpath);
Dlfs.c3903 static int lfs_rawrename(lfs_t *lfs, const char *oldpath, const char *newpath) { argument
3920 lfs_stag_t prevtag = lfs_dir_find(lfs, &newcwd, &newpath, &newid);
3934 lfs_size_t nlen = strlen(newpath);
3992 {LFS_MKTAG(lfs_tag_type3(oldtag), newid, strlen(newpath)), newpath},
5848 int lfs_rename(lfs_t *lfs, const char *oldpath, const char *newpath) { argument
5853 LFS_TRACE("lfs_rename(%p, \"%s\", \"%s\")", (void*)lfs, oldpath, newpath);
5855 err = lfs_rawrename(lfs, oldpath, newpath);