fts-compat.h (1539) | fts-compat.h (23650) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 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 --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * @(#)fts.h 8.1 (Berkeley) 6/2/93 | 33 * @(#)fts.h 8.3 (Berkeley) 8/14/94 |
34 */ 35 36#ifndef _FTS_H_ 37#define _FTS_H_ 38 39typedef struct { 40 struct _ftsent *fts_cur; /* current node */ 41 struct _ftsent *fts_child; /* linked list of children */ --- 7 unchanged lines hidden (view full) --- 49 50#define FTS_COMFOLLOW 0x001 /* follow command line symlinks */ 51#define FTS_LOGICAL 0x002 /* logical walk */ 52#define FTS_NOCHDIR 0x004 /* don't change directories */ 53#define FTS_NOSTAT 0x008 /* don't get stat info */ 54#define FTS_PHYSICAL 0x010 /* physical walk */ 55#define FTS_SEEDOT 0x020 /* return dot and dot-dot */ 56#define FTS_XDEV 0x040 /* don't cross devices */ | 34 */ 35 36#ifndef _FTS_H_ 37#define _FTS_H_ 38 39typedef struct { 40 struct _ftsent *fts_cur; /* current node */ 41 struct _ftsent *fts_child; /* linked list of children */ --- 7 unchanged lines hidden (view full) --- 49 50#define FTS_COMFOLLOW 0x001 /* follow command line symlinks */ 51#define FTS_LOGICAL 0x002 /* logical walk */ 52#define FTS_NOCHDIR 0x004 /* don't change directories */ 53#define FTS_NOSTAT 0x008 /* don't get stat info */ 54#define FTS_PHYSICAL 0x010 /* physical walk */ 55#define FTS_SEEDOT 0x020 /* return dot and dot-dot */ 56#define FTS_XDEV 0x040 /* don't cross devices */ |
57#define FTS_OPTIONMASK 0x07f /* valid user option mask */ | 57#define FTS_WHITEOUT 0x080 /* return whiteout information */ 58#define FTS_OPTIONMASK 0x0ff /* valid user option mask */ |
58 | 59 |
59#define FTS_NAMEONLY 0x080 /* (private) child names only */ 60#define FTS_STOP 0x100 /* (private) unrecoverable error */ | 60#define FTS_NAMEONLY 0x100 /* (private) child names only */ 61#define FTS_STOP 0x200 /* (private) unrecoverable error */ |
61 int fts_options; /* fts_open options, global flags */ 62} FTS; 63 64typedef struct _ftsent { 65 struct _ftsent *fts_cycle; /* cycle node */ 66 struct _ftsent *fts_parent; /* parent directory */ 67 struct _ftsent *fts_link; /* next file in directory */ 68 long fts_number; /* local numeric value */ --- 21 unchanged lines hidden (view full) --- 90#define FTS_DP 6 /* postorder directory */ 91#define FTS_ERR 7 /* error; errno is set */ 92#define FTS_F 8 /* regular file */ 93#define FTS_INIT 9 /* initialized only */ 94#define FTS_NS 10 /* stat(2) failed */ 95#define FTS_NSOK 11 /* no stat(2) requested */ 96#define FTS_SL 12 /* symbolic link */ 97#define FTS_SLNONE 13 /* symbolic link without target */ | 62 int fts_options; /* fts_open options, global flags */ 63} FTS; 64 65typedef struct _ftsent { 66 struct _ftsent *fts_cycle; /* cycle node */ 67 struct _ftsent *fts_parent; /* parent directory */ 68 struct _ftsent *fts_link; /* next file in directory */ 69 long fts_number; /* local numeric value */ --- 21 unchanged lines hidden (view full) --- 91#define FTS_DP 6 /* postorder directory */ 92#define FTS_ERR 7 /* error; errno is set */ 93#define FTS_F 8 /* regular file */ 94#define FTS_INIT 9 /* initialized only */ 95#define FTS_NS 10 /* stat(2) failed */ 96#define FTS_NSOK 11 /* no stat(2) requested */ 97#define FTS_SL 12 /* symbolic link */ 98#define FTS_SLNONE 13 /* symbolic link without target */ |
99#define FTS_W 14 /* whiteout object */ |
|
98 u_short fts_info; /* user flags for FTSENT structure */ 99 100#define FTS_DONTCHDIR 0x01 /* don't chdir .. to the parent */ 101#define FTS_SYMFOLLOW 0x02 /* followed a symlink to get here */ | 100 u_short fts_info; /* user flags for FTSENT structure */ 101 102#define FTS_DONTCHDIR 0x01 /* don't chdir .. to the parent */ 103#define FTS_SYMFOLLOW 0x02 /* followed a symlink to get here */ |
104#define FTS_ISW 0x04 /* this is a whiteout object */ |
|
102 u_short fts_flags; /* private flags for FTSENT structure */ 103 104#define FTS_AGAIN 1 /* read node again */ 105#define FTS_FOLLOW 2 /* follow symbolic link */ 106#define FTS_NOINSTR 3 /* no instructions */ 107#define FTS_SKIP 4 /* discard node */ 108 u_short fts_instr; /* fts_set() instructions */ 109 --- 16 unchanged lines hidden --- | 105 u_short fts_flags; /* private flags for FTSENT structure */ 106 107#define FTS_AGAIN 1 /* read node again */ 108#define FTS_FOLLOW 2 /* follow symbolic link */ 109#define FTS_NOINSTR 3 /* no instructions */ 110#define FTS_SKIP 4 /* discard node */ 111 u_short fts_instr; /* fts_set() instructions */ 112 --- 16 unchanged lines hidden --- |