Contents of /trunk/mkinitrd-magellan/busybox/archival/libunarchive/header_verbose_list.c
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 717 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 717 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 | /* 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 "libbb.h" |
7 | #include "unarchive.h" |
8 | |
9 | void header_verbose_list(const file_header_t *file_header) |
10 | { |
11 | struct tm *mtime = localtime(&(file_header->mtime)); |
12 | |
13 | printf("%s %d/%d %9"OFF_FMT"u %4u-%02u-%02u %02u:%02u:%02u %s", |
14 | bb_mode_string(file_header->mode), |
15 | file_header->uid, |
16 | file_header->gid, |
17 | file_header->size, |
18 | 1900 + mtime->tm_year, |
19 | 1 + mtime->tm_mon, |
20 | mtime->tm_mday, |
21 | mtime->tm_hour, |
22 | mtime->tm_min, |
23 | mtime->tm_sec, |
24 | file_header->name); |
25 | |
26 | if (file_header->link_name) { |
27 | printf(" -> %s", file_header->link_name); |
28 | } |
29 | /* putchar isnt used anywhere else i dont think */ |
30 | puts(""); |
31 | } |