buxiasen
95cf3b3aa9
blk/mtdoutstream: should flush before free
...
to avoid losing the data in the buffer
Signed-off-by: buxiasen <buxiasen@xiaomi.com >
2025-06-17 20:58:13 +08:00
buxiasen
379f246625
mtdstream: use mtdsostream to support seek
...
Decrease memory cost, flush should not be called too frequency, for not
bytewrite mtd, will cause not able to write again in same block.
Signed-off-by: buxiasen <buxiasen@xiaomi.com >
2025-06-17 20:58:13 +08:00
Lars Kruse
4568110d63
fix misspelled names in locally scoped code
...
These misspelled words are used in strictly local scopes.
Renaming these variables should not cause any problems.
2025-05-15 10:12:12 +08:00
buxiasen
eca83c4a73
blk/mtdoutstream: use lib_sostream_s to support seek
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com >
2024-11-30 03:08:35 +08:00
buxiasen
a5459cdaca
stream: reduce int use, handle FS_LARGEFILE correctly.
...
offset int -> offset, len int -> size_t, ret int -> ssize_t
Signed-off-by: buxiasen <buxiasen@xiaomi.com >
2024-11-15 01:05:04 +08:00
buxiasen
2433094ebd
blk/mtdoutstream: remove mtd bytewrite support, readback before update
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com >
2024-11-15 01:05:04 +08:00
buxiasen
d6c746e88d
blk/mtdoutstream: flush before close
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com >
2024-11-15 01:05:04 +08:00
Xiang Xiao
11960fd8e7
libc/mtdoutstream: Fix the in insufficient erase in byte write case
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2024-11-04 08:37:31 +08:00
Xiang Xiao
cccc413cb9
libc/mtdoutstream: Remove the redundant check and compute
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2024-11-04 08:37:31 +08:00
Xiang Xiao
1e343a884b
libc/mtdoutstream: Replace stream->geo.erasesize with erasesize
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2024-11-04 08:37:31 +08:00
Xiang Xiao
fa57289d68
libc/blkoutstream: Zero the cache to avoid random data
...
and skip zero cache in lib_mtdoutstream_open since it's aleady done ih mtdoutstream_puts
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2024-11-04 08:37:31 +08:00
Alin Jerpelea
6b5dddd5d7
libs/libc: migrate to SPDX identifier
...
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com >
2024-10-01 12:25:52 +08:00
Daniel Appiagyei
5bfda12634
c++ compatibility: rename reserved c++ keywords 'public' and 'this'
2023-09-16 19:45:02 +08:00
Xiang Xiao
055f1f33eb
libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc)
...
to make the naming style consistent with each other
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2022-12-05 14:27:55 +01:00
田昕
9d48d86606
libc/stream:add putc interface for mtd/blk stream.
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com >
2022-11-28 16:37:01 +08:00
田昕
28739b8b8a
libc/stream:Add mtd backend stream.
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com >
2022-11-24 12:07:10 +08:00