Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 39) sorted by relevance

12

/littlefs-3.7.0-3.6.0/tests/
Dtest_entries.toml18 char path[1024];
20 sprintf(path, "hi0"); size = 20;
22 lfs_file_open(&lfs, &file, path,
29 sprintf(path, "hi1"); size = 20;
30 lfs_file_open(&lfs, &file, path,
37 sprintf(path, "hi2"); size = 20;
38 lfs_file_open(&lfs, &file, path,
45 sprintf(path, "hi3"); size = 20;
46 lfs_file_open(&lfs, &file, path,
54 sprintf(path, "hi1"); size = 20;
[all …]
Dtest_relocations.toml26 char path[1024];
27 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
28 lfs_file_open(&lfs, &file, path, LFS_O_CREAT | LFS_O_WRONLY) => 0;
38 char path[1024];
39 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
41 strcmp(info.name, path) => 0;
51 char path[1024];
52 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
53 lfs_remove(&lfs, path) => 0;
65 char path[1024];
[all …]
Dtest_dirs.toml29 char path[1024];
30 sprintf(path, "dir%03d", i);
31 lfs_mkdir(&lfs, path) => 0;
46 char path[1024];
47 sprintf(path, "dir%03d", i);
50 assert(strcmp(info.name, path) == 0);
66 char path[1024];
67 sprintf(path, "removeme%03d", i);
68 lfs_mkdir(&lfs, path) => 0;
83 char path[1024];
[all …]
Dtest_exhaustion.toml26 char path[1024];
27 sprintf(path, "roadrunner/test%d", i);
32 lfs_file_open(&lfs, &file, path,
57 char path[1024];
58 sprintf(path, "roadrunner/test%d", i);
63 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
83 char path[1024];
84 sprintf(path, "roadrunner/test%d", i);
86 lfs_stat(&lfs, path, &info) => 0;
116 char path[1024];
[all …]
Dtest_paths.toml2 # simple path test
54 # dot path test
83 # dot dot path test
116 # trailing dot path test
141 # leading dot path test
156 # root dot dot path test
183 # invalid path tests
275 # max path test
286 char path[1024];
287 memset(path, 'w', LFS_NAME_MAX+1);
[all …]
Dtest_interspersed.toml12 char path[1024];
13 sprintf(path, "%c", alphas[j]);
14 lfs_file_open(&lfs, &files[j], path,
38 char path[1024];
39 sprintf(path, "%c", alphas[j]);
41 assert(strcmp(info.name, path) == 0);
49 char path[1024];
50 sprintf(path, "%c", alphas[j]);
51 lfs_file_open(&lfs, &files[j], path, LFS_O_RDONLY) => 0;
78 char path[1024];
[all …]
Dtest_alloc.toml22 char path[1024];
23 sprintf(path, "breakfast/%s", names[n]);
24 lfs_file_open(&lfs, &files[n], path,
43 char path[1024];
44 sprintf(path, "breakfast/%s", names[n]);
46 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
74 char path[1024];
75 sprintf(path, "breakfast/%s", names[n]);
77 lfs_file_open(&lfs, &file, path,
94 char path[1024];
[all …]
Dtest_orphans.toml227 // create random path
239 char path[1024];
240 strcpy(path, full_path);
241 path[2*d+2] = '\0';
242 err = lfs_mkdir(&lfs, path);
247 char path[1024];
248 strcpy(path, full_path);
249 path[2*d+2] = '\0';
250 lfs_stat(&lfs, path, &info) => 0;
251 assert(strcmp(info.name, &path[2*d+1]) == 0);
[all …]
Dtest_files.toml436 char path[1024];
437 sprintf(path, "file_%03d", i);
438 lfs_file_open(&lfs, &file, path,
447 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
464 char path[1024];
465 sprintf(path, "file_%03d", i);
466 lfs_file_open(&lfs, &file, path,
477 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
498 char path[1024];
499 sprintf(path, "file_%03d", i);
[all …]
/littlefs-3.7.0-3.6.0/scripts/
Dtest.py38 def openio(path, mode='r', buffering=-1): argument
40 if path == '-':
46 return open(path, mode, buffering)
52 self.path = config.pop('path')
149 def __init__(self, path, args={}): argument
150 self.path = path
151 self.name = os.path.basename(path)
156 with open(self.path) as f:
207 'path': path + (':%d' % case['lineno']
236 for path in test_paths:
[all …]
Dbench.py38 def openio(path, mode='r', buffering=-1): argument
40 if path == '-':
46 return open(path, mode, buffering)
52 self.path = config.pop('path')
146 def __init__(self, path, args={}): argument
147 self.path = path
148 self.name = os.path.basename(path)
153 with open(self.path) as f:
203 'path': path + (':%d' % case['lineno']
228 for path in bench_paths:
[all …]
Dperfbd.py135 def openio(path, mode='r', buffering=-1): argument
137 if path == '-':
143 return open(path, mode, buffering)
243 files[int(m.group('no'))] = os.path.join(
260 file = os.path.abspath(files.get(op_file, '?'))
295 def collect_job(path, start, stop, syms, sym_at, lines, line_at, *, argument
345 os.path.abspath(file)
346 == os.path.abspath(s)
351 if not everything and not os.path.commonpath([
353 os.path.abspath(file)]) == os.getcwd():
[all …]
Dwatch.py33 def openio(path, mode='r', buffering=-1): argument
35 if path == '-':
41 return open(path, mode, buffering)
56 for path in paths:
57 if os.path.isdir(path):
58 for dir, _, files in os.walk(path):
61 inotify.add_watch(os.path.join(dir, f), flags)
63 inotify.add_watch(path, flags)
207 if p and os.path.exists(p):
Dperf.py149 def openio(path, mode='r', buffering=-1): argument
151 if path == '-':
157 return open(path, mode, buffering)
335 files[int(m.group('no'))] = os.path.join(
352 file = os.path.abspath(files.get(op_file, '?'))
387 def collect_decompressed(path, *, argument
414 '-i%s' % path]
533 os.path.abspath(file) == os.path.abspath(s)
539 if not everything and not os.path.commonpath([
541 os.path.abspath(file)]) == os.getcwd():
[all …]
Ddata.py128 def openio(path, mode='r', buffering=-1): argument
130 if path == '-':
136 return open(path, mode, buffering)
160 for path in obj_paths:
162 file = re.sub('(\.o)?$', '.c', path, 1)
167 cmd = nm_path + ['--size-sort', path]
198 cmd = objdump_path + ['--dwarf=rawline', path]
220 files[int(m.group('no'))] = os.path.join(
239 cmd = objdump_path + ['--dwarf=info', path]
290 os.path.abspath(file) == os.path.abspath(s)
[all …]
Dcode.py128 def openio(path, mode='r', buffering=-1): argument
130 if path == '-':
136 return open(path, mode, buffering)
160 for path in obj_paths:
162 file = re.sub('(\.o)?$', '.c', path, 1)
167 cmd = nm_path + ['--size-sort', path]
198 cmd = objdump_path + ['--dwarf=rawline', path]
220 files[int(m.group('no'))] = os.path.join(
239 cmd = objdump_path + ['--dwarf=info', path]
290 os.path.abspath(file) == os.path.abspath(s)
[all …]
Dchangeprefix.py17 import os.path
27 def openio(path, mode='r', buffering=-1): argument
29 if path == '-':
35 return open(path, mode, buffering)
110 to_path = os.path.join(
111 os.path.dirname(from_path),
113 os.path.basename(from_path))[0])
Dstructs.py122 def openio(path, mode='r', buffering=-1): argument
124 if path == '-':
130 return open(path, mode, buffering)
150 for path in obj_paths:
155 cmd = objdump_path + ['--dwarf=rawline', path]
177 files[int(m.group('no'))] = os.path.join(
196 cmd = objdump_path + ['--dwarf=info', path]
234 os.path.abspath(r.file) == os.path.abspath(s)
239 if not everything and not os.path.commonpath([
241 os.path.abspath(r.file)]) == os.getcwd():
[all …]
Dcov.py203 def openio(path, mode='r', buffering=-1): argument
205 if path == '-':
211 return open(path, mode, buffering)
219 for path in gcda_paths:
222 cmd = GCOV_PATH + ['-b', '-t', '--json-format', path]
244 os.path.abspath(file['file']) == os.path.abspath(s)
249 if not everything and not os.path.commonpath([
251 os.path.abspath(file['file'])]) == os.getcwd():
255 if os.path.commonpath([
257 os.path.abspath(file['file'])]) == os.getcwd():
[all …]
Dstack.py122 def openio(path, mode='r', buffering=-1): argument
124 if path == '-':
130 return open(path, mode, buffering)
169 for path in ci_paths:
170 with open(path) as f:
205 os.path.abspath(s_file) == os.path.abspath(s)
210 if not everything and not os.path.commonpath([
212 os.path.abspath(s_file)]) == os.getcwd():
216 if os.path.commonpath([
218 os.path.abspath(s_file)]) == os.getcwd():
[all …]
Dtailpipe.py22 def openio(path, mode='r', buffering=-1): argument
24 if path == '-':
30 return open(path, mode, buffering)
101 def main(path='-', *, lines=5, cat=False, sleep=None, keep_open=False): argument
123 with openio(path) as f:
134 print("error: file not found %r" % path)
Dreadtree.py87 path, dir = pending.pop(0)
96 pending.append(((path + '/' + npath), nmdir))
100 dir[0].path = path.replace('//', '/')
123 print("dir %s" % (json.dumps(dir[0].path)
/littlefs-3.7.0-3.6.0/
Dlfs.h489 int lfs_remove(lfs_t *lfs, const char *path);
506 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info);
520 lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
531 int lfs_setattr(lfs_t *lfs, const char *path,
541 int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type);
555 const char *path, int flags);
572 const char *path, int flags,
646 int lfs_mkdir(lfs_t *lfs, const char *path);
653 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path);
DMakefile99 CODEFLAGS += --nm-path="$(NM)"
100 DATAFLAGS += --nm-path="$(NM)"
103 CODEFLAGS += --objdump-path="$(OBJDUMP)"
104 DATAFLAGS += --objdump-path="$(OBJDUMP)"
105 STRUCTSFLAGS += --objdump-path="$(OBJDUMP)"
106 PERFFLAGS += --objdump-path="$(OBJDUMP)"
107 PERFBDFLAGS += --objdump-path="$(OBJDUMP)"
110 PERFFLAGS += --perf-path="$(PERF)"
145 TESTFLAGS += --gdb-path="$(GDB)"
146 BENCHFLAGS += --gdb-path="$(GDB)"
[all …]
Dlfs.c1447 const char **path, uint16_t *id) { in lfs_dir_find() argument
1449 const char *name = *path; in lfs_dir_find()
1502 *path = name; in lfs_dir_find()
2572 static int lfs_rawmkdir(lfs_t *lfs, const char *path) { in lfs_rawmkdir() argument
2582 err = lfs_dir_find(lfs, &cwd.m, &path, &id); in lfs_rawmkdir()
2588 lfs_size_t nlen = strlen(path); in lfs_rawmkdir()
2655 {LFS_MKTAG(LFS_TYPE_DIR, id, nlen), path}, in lfs_rawmkdir()
2668 static int lfs_dir_rawopen(lfs_t *lfs, lfs_dir_t *dir, const char *path) { in lfs_dir_rawopen() argument
2669 lfs_stag_t tag = lfs_dir_find(lfs, &dir->m, &path, NULL); in lfs_dir_rawopen()
3013 const char *path, int flags, argument
[all …]

12