1/*- 2 * Copyright (c) 1989, 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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#if 0 31#ifndef lint 32static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93"; 33#endif /* not lint */ 34#endif 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/usr.sbin/mtree/compare.c 122141 2003-11-05 22:26:08Z phk $"); |
37 38#include <sys/param.h> 39#include <sys/stat.h> 40#include <sys/time.h> 41 42#include <err.h> 43#include <errno.h> 44#include <fcntl.h> --- 14 unchanged lines hidden (view full) --- 59#include <vis.h> 60 61#include "mtree.h" 62#include "extern.h" 63 64extern int uflag; 65extern int lineno; 66 |
67#define INDENTNAMELEN 8 68#define LABEL \ 69 if (!label++) { \ 70 len = printf("%s changed\n", RP(p)); \ 71 tab = "\t"; \ 72 } 73 74int --- 251 unchanged lines hidden (view full) --- 326 case S_IFSOCK: 327 return ("socket"); 328 default: 329 return ("unknown"); 330 } 331 /* NOTREACHED */ 332} 333 |
334const char * |
335ftype(u_int type) 336{ 337 switch(type) { 338 case F_BLOCK: 339 return ("block"); 340 case F_CHAR: 341 return ("char"); 342 case F_DIR: --- 28 unchanged lines hidden --- |