summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-03 14:05:15 +0000
committerGlenn L McGrath2002-11-03 14:05:15 +0000
commit237ae42fc96ede945d28d9054f045b73e419d089 (patch)
tree3fb6a9c10150303aca3c218b47aaf327a186382a /libbb
parent2fc54a9258c3aa5dad2ce9807ba85cf29af2668e (diff)
downloadbusybox-237ae42fc96ede945d28d9054f045b73e419d089.zip
busybox-237ae42fc96ede945d28d9054f045b73e419d089.tar.gz
Abstract read and seek in unarchiving code, convert bunzip to file descriptors, support tar -j
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xfuncs.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 2249e26..820a0d7 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;