Deleted Added
full compact
gen_subs.c (8855) gen_subs.c (9987)
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

--- 20 unchanged lines hidden (view full) ---

29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

--- 20 unchanged lines hidden (view full) ---

29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * $Id: gen_subs.c,v 1.3 1995/03/19 13:28:49 joerg Exp $
37 * $Id: gen_subs.c,v 1.4 1995/05/30 00:06:58 rgrimes Exp $
38 */
39
40#ifndef lint
41static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
42#endif /* not lint */
43
44#include <sys/types.h>
45#include <sys/time.h>
46#include <sys/stat.h>
47#include <sys/param.h>
48#include <stdio.h>
49#include <ctype.h>
38 */
39
40#ifndef lint
41static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
42#endif /* not lint */
43
44#include <sys/types.h>
45#include <sys/time.h>
46#include <sys/stat.h>
47#include <sys/param.h>
48#include <stdio.h>
49#include <ctype.h>
50#include <tzfile.h>
51#include <utmp.h>
52#include <unistd.h>
53#include <stdlib.h>
54#include <string.h>
55#include "pax.h"
56#include "extern.h"
57
58/*
59 * a collection of general purpose subroutines used by pax
60 */
61
62/*
63 * constants used by ls_list() when printing out archive members
64 */
65#define MODELEN 20
66#define DATELEN 64
50#include <utmp.h>
51#include <unistd.h>
52#include <stdlib.h>
53#include <string.h>
54#include "pax.h"
55#include "extern.h"
56
57/*
58 * a collection of general purpose subroutines used by pax
59 */
60
61/*
62 * constants used by ls_list() when printing out archive members
63 */
64#define MODELEN 20
65#define DATELEN 64
67#define SIXMONTHS ((DAYSPERNYEAR / 2) * SECSPERDAY)
66#define SIXMONTHS ((365 / 2) * 86400)
68#define CURFRMT "%b %e %H:%M"
69#define OLDFRMT "%b %e %Y"
70#ifndef UT_NAMESIZE
71#define UT_NAMESIZE 8
72#endif
73#define UT_GRPSIZE 6
74
75/*

--- 414 unchanged lines hidden ---
67#define CURFRMT "%b %e %H:%M"
68#define OLDFRMT "%b %e %Y"
69#ifndef UT_NAMESIZE
70#define UT_NAMESIZE 8
71#endif
72#define UT_GRPSIZE 6
73
74/*

--- 414 unchanged lines hidden ---