itime.c (217769) | itime.c (226520) |
---|---|
1/*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * SUCH DAMAGE. 28 */ 29 30#ifndef lint 31#if 0 32static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93"; 33#endif 34static const char rcsid[] = | 1/*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * SUCH DAMAGE. 28 */ 29 30#ifndef lint 31#if 0 32static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93"; 33#endif 34static const char rcsid[] = |
35 "$FreeBSD: head/sbin/dump/itime.c 217769 2011-01-24 06:17:05Z mckusick $"; | 35 "$FreeBSD: head/sbin/dump/itime.c 226520 2011-10-18 18:42:26Z mckusick $"; |
36#endif /* not lint */ 37 38#include <sys/param.h> 39#include <sys/queue.h> 40 41#include <ufs/ufs/dinode.h> 42 43#include <protocols/dumprestore.h> --- 173 unchanged lines hidden (view full) --- 217 } 218 msg("level %d dump on %s", level, tmsg); 219} 220 221static void 222dumprecout(FILE *file, const struct dumpdates *what) 223{ 224 | 36#endif /* not lint */ 37 38#include <sys/param.h> 39#include <sys/queue.h> 40 41#include <ufs/ufs/dinode.h> 42 43#include <protocols/dumprestore.h> --- 173 unchanged lines hidden (view full) --- 217 } 218 msg("level %d dump on %s", level, tmsg); 219} 220 221static void 222dumprecout(FILE *file, const struct dumpdates *what) 223{ 224 |
225 if (fprintf(file, DUMPOUTFMT, what->dd_name, | 225 if (strlen(what->dd_name) > DUMPFMTLEN) 226 quit("Name '%s' exceeds DUMPFMTLEN (%d) bytes\n", 227 what->dd_name, DUMPFMTLEN); 228 if (fprintf(file, DUMPOUTFMT, DUMPFMTLEN, what->dd_name, |
226 what->dd_level, ctime(&what->dd_ddate)) < 0) 227 quit("%s: %s\n", dumpdates, strerror(errno)); 228} 229 230int recno; 231 232static int 233getrecord(FILE *df, struct dumpdates *ddatep) --- 29 unchanged lines hidden --- | 229 what->dd_level, ctime(&what->dd_ddate)) < 0) 230 quit("%s: %s\n", dumpdates, strerror(errno)); 231} 232 233int recno; 234 235static int 236getrecord(FILE *df, struct dumpdates *ddatep) --- 29 unchanged lines hidden --- |