From 2967488be46c8e0454faf05f966826f9cfb9b746 Mon Sep 17 00:00:00 2001 From: bug1 Date: Sun, 3 Nov 2002 14:05:15 +0000 Subject: Abstract read and seek in unarchiving code, convert bunzip to file descriptors, support tar -j git-svn-id: svn://busybox.net/trunk/busybox@5787 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/xfuncs.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'libbb') diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 2249e263a..820a0d7cc 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -92,7 +92,7 @@ extern int xopen(const char *pathname, int flags) { int ret; - ret = open(pathname, flags); + ret = open(pathname, flags, 0777); if (ret == -1) { perror_msg_and_die("%s", pathname); } @@ -121,17 +121,6 @@ extern void xread_all(int fd, void *buf, size_t count) return; } -extern ssize_t xread_all_eof(int fd, void *buf, size_t count) -{ - ssize_t size; - - size = xread(fd, buf, count); - if ((size != 0) && (size != count)) { - error_msg_and_die("Short read"); - } - return(size); -} - extern unsigned char xread_char(int fd) { char tmp; -- cgit v1.2.3-55-g6feb