Lines Matching full:name

1032         strcpy(info->name, "/");  in lfs_dir_getinfo()
1038 LFS_MKTAG(LFS_TYPE_NAME, id, lfs->name_max+1), info->name); in lfs_dir_getinfo()
1064 const void *name; member
1070 struct lfs_dir_find_match *name = data; in lfs_dir_find_match() local
1071 lfs_t *lfs = name->lfs; in lfs_dir_find_match()
1075 lfs_size_t diff = lfs_min(name->size, lfs_tag_size(tag)); in lfs_dir_find_match()
1078 disk->block, disk->off, name->name, diff); in lfs_dir_find_match()
1084 if (name->size != lfs_tag_size(tag)) { in lfs_dir_find_match()
1085 return (name->size < lfs_tag_size(tag)) ? LFS_CMP_LT : LFS_CMP_GT; in lfs_dir_find_match()
1094 // we reduce path to a single name if we can find it in lfs_dir_find()
1095 const char *name = *path; in lfs_dir_find() local
1108 name += strspn(name, "/"); in lfs_dir_find()
1109 lfs_size_t namelen = strcspn(name, "/"); in lfs_dir_find()
1112 if ((namelen == 1 && memcmp(name, ".", 1) == 0) || in lfs_dir_find()
1113 (namelen == 2 && memcmp(name, "..", 2) == 0)) { in lfs_dir_find()
1114 name += namelen; in lfs_dir_find()
1118 // skip if matched by '..' in name in lfs_dir_find()
1119 const char *suffix = name + namelen; in lfs_dir_find()
1132 name = suffix + sufflen; in lfs_dir_find()
1143 if (name[0] == '\0') { in lfs_dir_find()
1148 *path = name; in lfs_dir_find()
1165 // find entry matching name in lfs_dir_find()
1170 // are we last name? in lfs_dir_find()
1171 (strchr(name, '/') == NULL) ? id : NULL, in lfs_dir_find()
1173 lfs, name, namelen}); in lfs_dir_find()
1187 // to next name in lfs_dir_find()
1188 name += namelen; in lfs_dir_find()
1927 // check that name fits in lfs_mkdir()
2081 strcpy(info->name, "."); in lfs_dir_read()
2087 strcpy(info->name, ".."); in lfs_dir_read()
2426 // check that name fits in lfs_file_opencfg()
2433 // get next slot and create entry to remember name in lfs_file_opencfg()
3269 // check that name fits in lfs_rename()
4753 // also fetch name in lfs_migrate()
4754 char name[LFS_NAME_MAX+1]; in lfs_migrate() local
4755 memset(name, 0, sizeof(name)); in lfs_migrate()
4758 name, entry1.d.nlen); in lfs_migrate()
4772 err = lfs_dir_find(lfs, &dir2, &(const char*){name}, &id); in lfs_migrate()
4784 name}, in lfs_migrate()