yinshengkai
|
05f8c588fd
|
libc/syslog: improve streamsyslog, add puts funtions
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
|
2023-01-05 02:00:43 +08:00 |
|
yinshengkai
|
275b2e70a4
|
syslog: fix extra line breaks in syslog when SYSLOG_COLOR_OUTPUT is enabled
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
|
2023-01-02 21:22:46 +08:00 |
|
dongjiuzhu1
|
8f05661a53
|
syslog: A trailing newline is added if none is present.
refs:
https://www.manpagez.com/man/3/syslog/
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
|
2022-12-30 00:20:33 +08:00 |
|
chao an
|
01eb4d586b
|
mm/iob: iob members are initialized after allocate
Signed-off-by: chao an <anchao@xiaomi.com>
|
2022-12-16 09:51:53 +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
|
9bfc91e6f1
|
libc/stream: Remove \n special handle from syslogstream_putc
since \r\n process is already done in up_putc or serial driver level
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-11-25 09:10:05 +01:00 |
|
Xiang Xiao
|
5fd1379d3f
|
syslog: Move syslog stream to libc like other stream implementation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-11-25 01:46:31 +08:00 |
|
田昕
|
28739b8b8a
|
libc/stream:Add mtd backend stream.
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
|
2022-11-24 12:07:10 +08:00 |
|
Nathan Hartman
|
1867bc2210
|
Fix compiler warnings (-Wunused-parameter) in various functions
Fixes the -Wunused-parameter warning in:
* group/group_signal.c: group_signal()
* irq/irq_unexpectedisr.c: irq_unexpected_isr()
* task/task_spawn.c: nxtask_spawn_proxy()
* timer/timer_getoverrun.c: timer_getoverrun()
* misc/dev_null.c: devnull_read(), devnull_write(), devnull_poll()
* misc/dev_zero.c: devzero_read(), devzero_write(), devzero_poll()
* syslog/syslog_channel.c: syslog_default_write()
* syslog/syslog_device.c: syslog_dev_flush()
* grp/lib_initgroups.c: initgroups()
* misc/lib_mknod.c: mknod()
* misc/lib_glob.c: ignore_err()
* pthread/pthread_barrierinit.c: pthread_barrier_init()
* pthread/pthread_atfork.c: pthread_atfork()
* semaphore/sem_init.c: nxsem_init()
* stream/lib_nullinstream.c: nullinstream_getc()
* stream/lib_nulloutstream.c: nulloutstream_putc()
* stream/lib_libnoflush.c: lib_noflush()
* stream/lib_libsnoflush.c: lib_snoflush()
* string/lib_strerror.c: strerror()
* time/lib_gettimeofday.c: gettimeofday()
* time/lib_settimeofday.c: settimeofday()
* unistd/lib_pathconf.c: fpathconf(), pathconf()
* unistd/lib_getrusage.c: getrusage()
* unistd/lib_setrlimit.c: setrlimit()
* unistd/lib_getrlimit.c: getrlimit()
* unistd/lib_setpriority.c: setpriority()
|
2022-07-12 11:42:34 +08:00 |
|
Xiang Xiao
|
f1236da21c
|
fs: Make the binary(no process) mode as the default
POSIX require file system shouldn't enable the \r and \n conversion by default
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-06-07 20:22:26 +03: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 |
|
Xiang Xiao
|
ef1a98dd00
|
Remove the unneeded void cast
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-04-17 23:32:05 +03:00 |
|
chao.an
|
ce1c8413a2
|
libc/lzfcompress: add lzf compress stream
compress stream based on lzf algorithm:
struct lib_rawoutstream_s rawstream;
struct lib_lzfoutstream_s lzfstream;
lib_rawoutstream(&rawstream, fd);
lib_lzfoutstream(&lzfstream, &rawstream);
Signed-off-by: chao.an <anchao@xiaomi.com>
|
2021-12-20 08:39:33 -06:00 |
|
Xiang Xiao
|
b869c1ce0e
|
libc: Move stream implementation from libs/libc/stdio to libs/libc/stream
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2021-12-14 00:51:59 -06:00 |
|