diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-03 14:05:15 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-03 14:05:15 +0000 |
commit | 2967488be46c8e0454faf05f966826f9cfb9b746 (patch) | |
tree | 3fb6a9c10150303aca3c218b47aaf327a186382a /libbb | |
parent | 76351c0a9c44f998dd9be624435bf96392c4e088 (diff) | |
download | busybox-w32-2967488be46c8e0454faf05f966826f9cfb9b746.tar.gz busybox-w32-2967488be46c8e0454faf05f966826f9cfb9b746.tar.bz2 busybox-w32-2967488be46c8e0454faf05f966826f9cfb9b746.zip |
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
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xfuncs.c | 13 |
1 files changed, 1 insertions, 12 deletions
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) | |||
92 | { | 92 | { |
93 | int ret; | 93 | int ret; |
94 | 94 | ||
95 | ret = open(pathname, flags); | 95 | ret = open(pathname, flags, 0777); |
96 | if (ret == -1) { | 96 | if (ret == -1) { |
97 | perror_msg_and_die("%s", pathname); | 97 | perror_msg_and_die("%s", pathname); |
98 | } | 98 | } |
@@ -121,17 +121,6 @@ extern void xread_all(int fd, void *buf, size_t count) | |||
121 | return; | 121 | return; |
122 | } | 122 | } |
123 | 123 | ||
124 | extern ssize_t xread_all_eof(int fd, void *buf, size_t count) | ||
125 | { | ||
126 | ssize_t size; | ||
127 | |||
128 | size = xread(fd, buf, count); | ||
129 | if ((size != 0) && (size != count)) { | ||
130 | error_msg_and_die("Short read"); | ||
131 | } | ||
132 | return(size); | ||
133 | } | ||
134 | |||
135 | extern unsigned char xread_char(int fd) | 124 | extern unsigned char xread_char(int fd) |
136 | { | 125 | { |
137 | char tmp; | 126 | char tmp; |