gen_subs.c (2749b1412921cacde0110606121acb7a5e1e2b62) gen_subs.c (5b94264c208e2eee704ce67146e52c271dc4ef6f)
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 *

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

42#endif /* not lint */
43#include <sys/cdefs.h>
44__FBSDID("$FreeBSD$");
45
46#include <sys/types.h>
47#include <sys/time.h>
48#include <sys/stat.h>
49#include <langinfo.h>
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 *

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

42#endif /* not lint */
43#include <sys/cdefs.h>
44__FBSDID("$FreeBSD$");
45
46#include <sys/types.h>
47#include <sys/time.h>
48#include <sys/stat.h>
49#include <langinfo.h>
50#include <stdint.h>
50#include <stdio.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

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

133# else
134 (void)fprintf(fp, "%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev),
135 (unsigned long)MINOR(sbp->st_rdev));
136# endif
137 else {
138# ifdef NET2_STAT
139 (void)fprintf(fp, "%9lu ", sbp->st_size);
140# else
51#include <stdio.h>
52#include <utmp.h>
53#include <unistd.h>
54#include <stdlib.h>
55#include <string.h>
56#include "pax.h"
57#include "extern.h"
58

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

134# else
135 (void)fprintf(fp, "%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev),
136 (unsigned long)MINOR(sbp->st_rdev));
137# endif
138 else {
139# ifdef NET2_STAT
140 (void)fprintf(fp, "%9lu ", sbp->st_size);
141# else
141 (void)fprintf(fp, "%9qu ", sbp->st_size);
142 (void)fprintf(fp, "%9ju ", (uintmax_t)sbp->st_size);
142# endif
143 }
144
145 /*
146 * print name and link info for hard and soft links
147 */
148 (void)fprintf(fp, "%s %s", f_date, arcn->name);
149 if ((arcn->type == PAX_HLK) || (arcn->type == PAX_HRG))

--- 258 unchanged lines hidden ---
143# endif
144 }
145
146 /*
147 * print name and link info for hard and soft links
148 */
149 (void)fprintf(fp, "%s %s", f_date, arcn->name);
150 if ((arcn->type == PAX_HLK) || (arcn->type == PAX_HRG))

--- 258 unchanged lines hidden ---