-/* $OpenBSD: ar_io.c,v 1.42 2014/01/08 04:58:36 guenther Exp $ */
+/* $OpenBSD: ar_io.c,v 1.43 2014/01/08 05:52:47 guenther Exp $ */
/* $NetBSD: ar_io.c,v 1.5 1996/03/26 23:54:13 mrg Exp $ */
/*-
* could have written anything yet.
*/
if (frmt == NULL) {
- (void)fprintf(listf, "%s: unknown format, %qu bytes skipped.\n",
+ (void)fprintf(listf, "%s: unknown format, %llu bytes skipped.\n",
argv0, rdcnt);
(void)fflush(listf);
flcnt = 0;
}
if (strcmp(NM_CPIO, argv0) == 0)
- (void)fprintf(listf, "%qu blocks\n", (rdcnt ? rdcnt : wrcnt) / 5120);
+ (void)fprintf(listf, "%llu blocks\n", (rdcnt ? rdcnt : wrcnt) / 5120);
else if (strcmp(NM_TAR, argv0) != 0)
(void)fprintf(listf,
- "%s: %s vol %d, %lu files, %qu bytes read, %qu bytes written.\n",
+ "%s: %s vol %d, %lu files, %llu bytes read, %llu bytes written.\n",
argv0, frmt->name, arvol-1, flcnt, rdcnt, wrcnt);
(void)fflush(listf);
flcnt = 0;
/*
* Better tell the user the bad news...
* if this is a block aligned archive format, we may have a bad archive
- * if the format wants the header to start at a BLKMULT boundary.. While
+ * if the format wants the header to start at a BLKMULT boundary. While
* we can deal with the mis-aligned data, it violates spec and other
* archive readers will likely fail. if the format is not block
* aligned, the user may be lucky (and the archive is ok).
-/* $OpenBSD: cpio.c,v 1.23 2014/01/08 04:58:36 guenther Exp $ */
+/* $OpenBSD: cpio.c,v 1.24 2014/01/08 05:52:47 guenther Exp $ */
/* $NetBSD: cpio.c,v 1.5 1995/03/21 09:07:13 cgd Exp $ */
/*-
*/
if ((arcn->sb.st_size == 0) ||
(arcn->sb.st_size >= sizeof(arcn->ln_name))) {
- paxwarn(1, "Cpio link name length is invalid: %qu",
+ paxwarn(1, "Cpio link name length is invalid: %llu",
arcn->sb.st_size);
return(-1);
}
-/* $OpenBSD: gen_subs.c,v 1.23 2014/01/08 04:58:36 guenther Exp $ */
+/* $OpenBSD: gen_subs.c,v 1.24 2014/01/08 05:52:47 guenther Exp $ */
/* $NetBSD: gen_subs.c,v 1.5 1995/03/21 09:07:26 cgd Exp $ */
/*-
* print device id's for devices, or sizes for other nodes
*/
if ((arcn->type == PAX_CHR) || (arcn->type == PAX_BLK))
- (void)fprintf(fp, "%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev),
+ (void)fprintf(fp, "%4lu,%4lu ",
+ (unsigned long)MAJOR(sbp->st_rdev),
(unsigned long)MINOR(sbp->st_rdev));
else {
- (void)fprintf(fp, "%9qu ", sbp->st_size);
+ (void)fprintf(fp, "%9llu ", sbp->st_size);
}
/*
-/* $OpenBSD: options.c,v 1.78 2014/01/08 04:58:36 guenther Exp $ */
+/* $OpenBSD: options.c,v 1.79 2014/01/08 05:52:47 guenther Exp $ */
/* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */
/*-
char *expr;
off_t num, t;
- num = strtoq(val, &expr, 0);
- if ((num == QUAD_MAX) || (num <= 0) || (expr == val))
+ num = strtoll(val, &expr, 0);
+ if ((num == LLONG_MAX) || (num <= 0) || (expr == val))
return(0);
switch (*expr) {
temp[len-1] = 0;
return(temp);
}
-
+
/*
* no_op()
* for those option functions where the archive format has nothing to do.