modprobe: use buffering line reads (fgets) instead of reads().
libbb: remove reads() function old new delta include_conf_file_act 961 980 +19 localcmd 282 284 +2 already_loaded 155 151 -4 in_cksum 58 53 -5 modprobe_main 1630 1624 -6 reads 129 - -129 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 2/3 up/down: 21/-144) Total: -123 bytes
This commit is contained in:
@ -586,9 +586,6 @@ extern ssize_t nonblock_safe_read(int fd, void *buf, size_t count) FAST_FUNC;
|
||||
extern ssize_t full_read(int fd, void *buf, size_t count) FAST_FUNC;
|
||||
extern void xread(int fd, void *buf, size_t count) FAST_FUNC;
|
||||
extern unsigned char xread_char(int fd) FAST_FUNC;
|
||||
// Reads one line a-la fgets (but doesn't save terminating '\n').
|
||||
// Uses single full_read() call, works only on seekable streams.
|
||||
extern char *reads(int fd, char *buf, size_t count) FAST_FUNC;
|
||||
extern ssize_t read_close(int fd, void *buf, size_t maxsz) FAST_FUNC;
|
||||
extern ssize_t open_read_close(const char *filename, void *buf, size_t maxsz) FAST_FUNC;
|
||||
// Reads one line a-la fgets (but doesn't save terminating '\n').
|
||||
|
Reference in New Issue
Block a user