create.c (124265) | create.c (124387) |
---|---|
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[] = "@(#)create.c 8.1 (Berkeley) 6/6/93"; 33#endif /* not lint */ 34#endif 35#include <sys/cdefs.h> | 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[] = "@(#)create.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/create.c 124265 2004-01-08 22:21:45Z phk $"); | 36__FBSDID("$FreeBSD: head/usr.sbin/mtree/create.c 124387 2004-01-11 19:25:56Z phk $"); |
37 38#include <sys/param.h> 39#include <sys/stat.h> 40#include <dirent.h> 41#include <err.h> 42#include <errno.h> 43#include <fcntl.h> 44#include <fts.h> --- 14 unchanged lines hidden (view full) --- 59#include <unistd.h> 60#include <vis.h> 61#include "mtree.h" 62#include "extern.h" 63 64#define INDENTNAMELEN 15 65#define MAXLINELEN 80 66 | 37 38#include <sys/param.h> 39#include <sys/stat.h> 40#include <dirent.h> 41#include <err.h> 42#include <errno.h> 43#include <fcntl.h> 44#include <fts.h> --- 14 unchanged lines hidden (view full) --- 59#include <unistd.h> 60#include <vis.h> 61#include "mtree.h" 62#include "extern.h" 63 64#define INDENTNAMELEN 15 65#define MAXLINELEN 80 66 |
67extern int ftsoptions; 68extern int dflag, iflag, nflag, sflag; 69extern u_int keys; 70extern char fullpath[MAXPATHLEN]; 71extern int lineno; 72 | |
73static gid_t gid; 74static uid_t uid; 75static mode_t mode; 76static u_long flags = 0xffffffff; 77 78static int dsort(const FTSENT * const *, const FTSENT * const *); 79static void output(int, int *, const char *, ...) __printflike(3, 4); 80static int statd(FTS *, FTSENT *, uid_t *, gid_t *, mode_t *, u_long *); --- 329 unchanged lines hidden --- | 67static gid_t gid; 68static uid_t uid; 69static mode_t mode; 70static u_long flags = 0xffffffff; 71 72static int dsort(const FTSENT * const *, const FTSENT * const *); 73static void output(int, int *, const char *, ...) __printflike(3, 4); 74static int statd(FTS *, FTSENT *, uid_t *, gid_t *, mode_t *, u_long *); --- 329 unchanged lines hidden --- |