source: branches/stable/mindi-busybox/archival/libunarchive/header_verbose_list.c @ 821

Last change on this file since 821 was 821, checked in by Bruno Cornec, 14 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 667 bytes
Line 
1#include <stdio.h>
2#include <string.h>
3#include <time.h>
4#include "libbb.h"
5#include "unarchive.h"
6
7void header_verbose_list(const file_header_t *file_header)
8{
9    struct tm *mtime = localtime(&(file_header->mtime));
10
11    printf("%s %d/%d%10u %4u-%02u-%02u %02u:%02u:%02u %s",
12        bb_mode_string(file_header->mode),
13        file_header->uid,
14        file_header->gid,
15        (unsigned int) file_header->size,
16        1900 + mtime->tm_year,
17        1 + mtime->tm_mon,
18        mtime->tm_mday,
19        mtime->tm_hour,
20        mtime->tm_min,
21        mtime->tm_sec,
22        file_header->name);
23
24    if (file_header->link_name) {
25        printf(" -> %s", file_header->link_name);
26    }
27    /* putchar isnt used anywhere else i dont think */
28    puts("");
29}
Note: See TracBrowser for help on using the repository browser.