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
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
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
Xiang Xiao
00529f1626
libc/blkoutstream: Remove the redundant check and compute
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-11-04 08:37:31 +08:00
Xiang Xiao
9f1af300cb
libc/blkoutstream: Replace stream->geo.geo_sectorsize with sectorsize
...
and sblock with sector to make the code more readable.
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
Xiang Xiao
5cb82dfcfb
libc/blkoutstream: Minor style fix
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-04-18 19:21:22 +03:00
chao.an
889a3bf7fc
libc/blockstream: add block out stream backend
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-18 19:21:22 +03:00