Magellan Linux

Annotation of /trunk/mkinitrd-magellan/busybox/archival/libunarchive/archive_xread_all_eof.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 469 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 niro 532 /* vi: set sw=4 ts=4: */
2     /*
3     * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
4     */
5    
6     #include "unarchive.h"
7     #include "libbb.h"
8    
9     ssize_t archive_xread_all_eof(archive_handle_t *archive_handle,
10     unsigned char *buf, size_t count)
11     {
12     ssize_t size;
13    
14     size = full_read(archive_handle->src_fd, buf, count);
15     if (size != 0 && size != count) {
16     bb_error_msg_and_die("short read: %u of %u",
17     (unsigned)size, (unsigned)count);
18     }
19     return size;
20     }