Home
last modified time | relevance | path

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

12

/littlefs-latest/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_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.toml28 char path[1024];
29 sprintf(path, "breakfast/%s", names[n]);
30 lfs_file_open(&lfs, &files[n], path,
49 char path[1024];
50 sprintf(path, "breakfast/%s", names[n]);
52 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
86 char path[1024];
87 sprintf(path, "breakfast/%s", names[n]);
89 lfs_file_open(&lfs, &file, path,
106 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_paths.toml2 # simple path test
249 # absolute path test
1103 # dot path tests
1764 # dot dot path tests
2268 # dot dot dot path tests
2518 # dot dot dot path tests
2767 # leading dot path test
3014 # root dot dot path test
4549 # test an empty path, this should error
4965 char path[1024];
[all …]
Dtest_files.toml455 char path[1024];
456 sprintf(path, "file_%03d", i);
457 lfs_file_open(&lfs, &file, path,
466 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
483 char path[1024];
484 sprintf(path, "file_%03d", i);
485 lfs_file_open(&lfs, &file, path,
496 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
521 char path[1024];
522 sprintf(path, "file_%03d", i);
[all …]
/littlefs-latest/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 …]
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 …]
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):
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 …]
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 …]
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])
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-latest/
Dlfs.h509 int lfs_remove(lfs_t *lfs, const char *path);
526 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info);
540 lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
551 int lfs_setattr(lfs_t *lfs, const char *path,
561 int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type);
575 const char *path, int flags);
592 const char *path, int flags,
666 int lfs_mkdir(lfs_t *lfs, const char *path);
673 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.c290 static inline lfs_size_t lfs_path_namelen(const char *path) { in lfs_path_namelen() argument
291 return strcspn(path, "/"); in lfs_path_namelen()
294 static inline bool lfs_path_islast(const char *path) { in lfs_path_islast() argument
295 lfs_size_t namelen = lfs_path_namelen(path); in lfs_path_islast()
296 return path[namelen + strspn(path + namelen, "/")] == '\0'; in lfs_path_islast()
299 static inline bool lfs_path_isdir(const char *path) { in lfs_path_isdir() argument
300 return path[lfs_path_namelen(path)] != '\0'; in lfs_path_isdir()
1491 const char **path, uint16_t *id) { in lfs_dir_find() argument
1493 const char *name = *path; in lfs_dir_find()
1556 *path = name; in lfs_dir_find()
[all …]

12