From 855ff6f503ee50fad3eb6fa30e2b02f53f32d63d Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 4 Aug 2008 21:16:46 +0000 Subject: 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 --- include/libbb.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index f7a6849..9cbab4f 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -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'). -- cgit v1.1