fts.h (203964) | fts.h (250887) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)fts.h 8.3 (Berkeley) 8/14/94 | 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)fts.h 8.3 (Berkeley) 8/14/94 |
30 * $FreeBSD: head/include/fts.h 203964 2010-02-16 19:39:50Z imp $ | 30 * $FreeBSD: head/include/fts.h 250887 2013-05-21 21:20:10Z ed $ |
31 */ 32 33#ifndef _FTS_H_ 34#define _FTS_H_ 35 | 31 */ 32 33#ifndef _FTS_H_ 34#define _FTS_H_ 35 |
36#include <sys/_types.h> 37 |
|
36typedef struct { 37 struct _ftsent *fts_cur; /* current node */ 38 struct _ftsent *fts_child; /* linked list of children */ 39 struct _ftsent **fts_array; /* sort array */ | 38typedef struct { 39 struct _ftsent *fts_cur; /* current node */ 40 struct _ftsent *fts_child; /* linked list of children */ 41 struct _ftsent **fts_array; /* sort array */ |
40 dev_t fts_dev; /* starting device # */ | 42 __dev_t fts_dev; /* starting device # */ |
41 char *fts_path; /* path for this descent */ 42 int fts_rfd; /* fd for root */ | 43 char *fts_path; /* path for this descent */ 44 int fts_rfd; /* fd for root */ |
43 size_t fts_pathlen; /* sizeof(path) */ 44 size_t fts_nitems; /* elements in the sort array */ | 45 __size_t fts_pathlen; /* sizeof(path) */ 46 __size_t fts_nitems; /* elements in the sort array */ |
45 int (*fts_compar) /* compare function */ 46 (const struct _ftsent * const *, const struct _ftsent * const *); 47 48#define FTS_COMFOLLOW 0x001 /* follow command line symlinks */ 49#define FTS_LOGICAL 0x002 /* logical walk */ 50#define FTS_NOCHDIR 0x004 /* don't change directories */ 51#define FTS_NOSTAT 0x008 /* don't get stat info */ 52#define FTS_PHYSICAL 0x010 /* physical walk */ --- 14 unchanged lines hidden (view full) --- 67 struct _ftsent *fts_link; /* next file in directory */ 68 long long fts_number; /* local numeric value */ 69#define fts_bignum fts_number /* XXX non-std, should go away */ 70 void *fts_pointer; /* local address value */ 71 char *fts_accpath; /* access path */ 72 char *fts_path; /* root path */ 73 int fts_errno; /* errno for this node */ 74 int fts_symfd; /* fd for symlink */ | 47 int (*fts_compar) /* compare function */ 48 (const struct _ftsent * const *, const struct _ftsent * const *); 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 */ --- 14 unchanged lines hidden (view full) --- 69 struct _ftsent *fts_link; /* next file in directory */ 70 long long fts_number; /* local numeric value */ 71#define fts_bignum fts_number /* XXX non-std, should go away */ 72 void *fts_pointer; /* local address value */ 73 char *fts_accpath; /* access path */ 74 char *fts_path; /* root path */ 75 int fts_errno; /* errno for this node */ 76 int fts_symfd; /* fd for symlink */ |
75 size_t fts_pathlen; /* strlen(fts_path) */ 76 size_t fts_namelen; /* strlen(fts_name) */ | 77 __size_t fts_pathlen; /* strlen(fts_path) */ 78 __size_t fts_namelen; /* strlen(fts_name) */ |
77 | 79 |
78 ino_t fts_ino; /* inode */ 79 dev_t fts_dev; /* device */ 80 nlink_t fts_nlink; /* link count */ | 80 __ino_t fts_ino; /* inode */ 81 __dev_t fts_dev; /* device */ 82 __nlink_t fts_nlink; /* link count */ |
81 82#define FTS_ROOTPARENTLEVEL -1 83#define FTS_ROOTLEVEL 0 84 long fts_level; /* depth (-1 to N) */ 85 86#define FTS_D 1 /* preorder directory */ 87#define FTS_DC 2 /* directory that causes cycles */ 88#define FTS_DEFAULT 3 /* none of the above */ --- 46 unchanged lines hidden --- | 83 84#define FTS_ROOTPARENTLEVEL -1 85#define FTS_ROOTLEVEL 0 86 long fts_level; /* depth (-1 to N) */ 87 88#define FTS_D 1 /* preorder directory */ 89#define FTS_DC 2 /* directory that causes cycles */ 90#define FTS_DEFAULT 3 /* none of the above */ --- 46 unchanged lines hidden --- |