Home
last modified time | relevance | path

Searched full:c (Results 1 – 25 of 32) sorted by relevance

12

/littlefs-2.7.6/
DMakefile2 ifneq ($(wildcard test.c main.c),)
10 SRC += $(wildcard *.c bd/*.c)
11 OBJ := $(SRC:.c=.o)
12 DEP := $(SRC:.c=.d)
13 ASM := $(SRC:.c=.s)
58 %.o: %.c
59 $(CC) -c -MMD $(CFLAGS) $< -o $@
61 %.s: %.c
DDESIGN.md98 | C | | D | | E |
120 | C | new B | new A | | A | B |
151 .--------. | C'| D'| | E'|
166 | C | | D | | E |
209 | C | | D | | E | | |
271 | C'| D'| | | E'|new| |
278 | C | | D | .--------. write | new E |
459 commit C and D, need to split
479 | C | |
874 . . . | C | . | D | | E |
[all …]
D.travis.yml26 - sed -n '/``` c/,/```/{/```/d; p}' README.md > test.c &&
65 OBJ="$(ls lfs*.c | sed 's/\.c/\.o/' | tr '\n' ' ')"
82 STATUS="$STATUS ($(python -c "print '%+.2f' % (100*($CURR-$PREV)/$PREV.0)")%)"
233 - make -C littlefs-fuse
269 - make -C v1
270 - make -C v2
DCMakeLists.txt8 lfs.c
9 lfs_util.c
Dlfs.h4 * Copyright (c) 2017, Arm Limited. All rights reserved.
14 extern "C"
158 int (*read)(const struct lfs_config *c, lfs_block_t block,
164 int (*prog)(const struct lfs_config *c, lfs_block_t block,
171 int (*erase)(const struct lfs_config *c, lfs_block_t block);
175 int (*sync)(const struct lfs_config *c);
652 } /* extern "C" */
Dlfs_util.h4 * Copyright (c) 2017, Arm Limited. All rights reserved.
59 extern "C"
131 // expensive basic C implementation for debugging purposes
267 } /* extern "C" */
DREADME.md34 ``` c
118 Littlefs is written in C, and specifically should compile with any compiler
162 | C'| D'| | | E'|new| |
169 | C | | D | .--------. write | new E |
DSPEC.md127 | tag BxC |---> xor -> tag C | tag BxC |---> xor -> tag B
129 | data C | | data C | |
130 | | | | tag C
157 | | data C | || |
190 |'--- most recent C
339 || block | || block | || block | || block | || file C |
432 || file C | || file F | || | || | || file L | || |
508 | C |<-| F |--| I |--| L |--| O | | |
593 '->| dir B |->| dir B |->| dir C |
/littlefs-2.7.6/tests/
Dtest_attrs.toml15 lfs_setattr(&lfs, "hello", 'C', "ccccc", 5) => 0;
18 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
26 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
34 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
42 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
50 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
59 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
67 lfs_getattr(&lfs, "hello", 'C', buffer+13, 5) => 5;
93 lfs_setattr(&lfs, "/", 'C', "ccccc", 5) => 0;
96 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
[all …]
Dtest_entries.toml20 memset(wbuffer, 'c', size);
28 memset(wbuffer, 'c', size);
36 memset(wbuffer, 'c', size);
44 memset(wbuffer, 'c', size);
60 memset(wbuffer, 'c', size);
109 memset(wbuffer, 'c', size);
117 memset(wbuffer, 'c', size);
125 memset(wbuffer, 'c', size);
133 memset(wbuffer, 'c', size);
149 memset(wbuffer, 'c', size);
[all …]
Dtest_exhaustion.toml32 char c = 'a' + (rand() % 26);
33 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1);
59 char c = 'a' + (rand() % 26);
62 assert(r == c);
114 char c = 'a' + (rand() % 26);
115 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1);
141 char c = 'a' + (rand() % 26);
144 assert(r == c);
205 char c = 'a' + (rand() % 26);
206 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1);
[all …]
Dtest_move.toml7 lfs_mkdir(&lfs, "c") => 0;
17 lfs_rename(&lfs, "a/hello", "c/hello") => 0;
30 lfs_dir_open(&lfs, &dir, "c") => 0;
46 lfs_file_open(&lfs, &file, "c/hello", LFS_O_RDONLY) => 0;
75 in = "lfs.c"
81 lfs_mkdir(&lfs, "c") => 0;
91 lfs_rename(&lfs, "a/hello", "c/hello") => 0;
121 lfs_dir_open(&lfs, &dir, "c") => 0;
137 lfs_file_open(&lfs, &file, "c/hello", LFS_O_RDONLY) => 0;
150 in = "lfs.c"
[all …]
Dtest_evil.toml9 in = "lfs.c"
31 in = "lfs.c"
76 in = "lfs.c"
125 in = "lfs.c"
134 char c = 'c';
135 lfs_file_write(&lfs, &file, &c, 1) => 1;
187 in = "lfs.c"
213 in = "lfs.c"
232 in = "lfs.c"
262 in = "lfs.c"
Dtest_interspersed.toml11 sprintf(path, "%c", alphas[j]);
34 sprintf(path, "%c", alphas[j]);
44 sprintf(path, "%c", alphas[j]);
70 sprintf(path, "%c", alphas[j]);
86 sprintf(path, "%c", alphas[j]);
190 sprintf(path, "%c", alphas[j]);
218 sprintf(path, "%c", alphas[j]);
228 sprintf(path, "%c", alphas[j]);
Dtest_seek.toml262 uint8_t c;
263 lfs_file_read(&lfs, &file, &c, 1) => 1;
264 c => buffer[k++ % 26];
280 uint8_t c[3];
282 lfs_file_read(&lfs, &file, &c, 3) => 3;
295 uint8_t c;
296 lfs_file_read(&lfs, &file, &c, 1) => 1;
297 c => buffer[k++ % 26];
Dtest_alloc.toml97 for (int c = 0; c < CYCLES; c++) {
151 for (int c = 0; c < CYCLES; c++) {
327 in = "lfs.c"
Dtest_orphans.toml2 in = "lfs.c"
81 sprintf(&full_path[2*d], "/%c", alpha[rand() % FILES]);
Dtest_relocations.toml170 sprintf(&full_path[2*d], "/%c", alpha[rand() % FILES]);
232 sprintf(&full_path[2*d], "/%c", alpha[rand() % FILES]);
261 sprintf(&new_path[2*d], "/%c", alpha[rand() % FILES]);
/littlefs-2.7.6/scripts/
Dreadmdir.py288 ' '.join('%02x' % c for c in tag.data[:8]),
289 ''.join(c if c >= ' ' and c <= '~' else '.'
290 for c in map(chr, tag.data[:8]))))
296 ' '.join('%02x' % c for c in tag.data[i:i+16]),
297 ''.join(c if c >= ' ' and c <= '~' else '.'
298 for c in map(chr, tag.data[i:i+16]))))
Dtest.py34 %.test: %.test.o $(foreach f,$(subst /,.,$(SRC:.c=.o)),%.$f)
241 print(' '.join(shlex.quote(c) for c in ncmd))
248 print(' '.join(shlex.quote(c) for c in cmd))
470 tf = open(self.path + '.test.c.t', 'w')
530 self.path+'.test.c',
532 self.path+'.test.c.t'))
632 print(' '.join(shlex.quote(c) for c in cmd))
Dexplode_asserts.py91 printf("%c", s[i]);
376 help="Input C file after cpp.")
378 help="Output C file.")
/littlefs-2.7.6/bd/
Dlfs_rambd.h4 * Copyright (c) 2017, Arm Limited. All rights reserved.
14 extern "C"
72 } /* extern "C" */
Dlfs_filebd.h4 * Copyright (c) 2017, Arm Limited. All rights reserved.
14 extern "C"
70 } /* extern "C" */
Dlfs_testbd.h5 * Copyright (c) 2017, Arm Limited. All rights reserved.
17 extern "C"
138 } /* extern "C" */
Dlfs_filebd.c4 * Copyright (c) 2017, Arm Limited. All rights reserved.
130 uint8_t c; in lfs_filebd_prog() local
131 ssize_t res2 = read(bd->fd, &c, 1); in lfs_filebd_prog()
138 LFS_ASSERT(c == bd->cfg->erase_value); in lfs_filebd_prog()

12