Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: fts.h
/* File tree traversal functions declarations.
[0] Fix | Delete
Copyright (C) 1994-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
/*
[18] Fix | Delete
* Copyright (c) 1989, 1993
[19] Fix | Delete
* The Regents of the University of California. All rights reserved.
[20] Fix | Delete
*
[21] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[22] Fix | Delete
* modification, are permitted provided that the following conditions
[23] Fix | Delete
* are met:
[24] Fix | Delete
* 1. Redistributions of source code must retain the above copyright
[25] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[26] Fix | Delete
* 2. Redistributions in binary form must reproduce the above copyright
[27] Fix | Delete
* notice, this list of conditions and the following disclaimer in the
[28] Fix | Delete
* documentation and/or other materials provided with the distribution.
[29] Fix | Delete
* 4. Neither the name of the University nor the names of its contributors
[30] Fix | Delete
* may be used to endorse or promote products derived from this software
[31] Fix | Delete
* without specific prior written permission.
[32] Fix | Delete
*
[33] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
[34] Fix | Delete
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[35] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[36] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
[37] Fix | Delete
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
[38] Fix | Delete
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
[39] Fix | Delete
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
[40] Fix | Delete
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
[41] Fix | Delete
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
[42] Fix | Delete
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
[43] Fix | Delete
* SUCH DAMAGE.
[44] Fix | Delete
*
[45] Fix | Delete
* @(#)fts.h 8.3 (Berkeley) 8/14/94
[46] Fix | Delete
*/
[47] Fix | Delete
[48] Fix | Delete
#ifndef _FTS_H
[49] Fix | Delete
#define _FTS_H 1
[50] Fix | Delete
[51] Fix | Delete
#include <features.h>
[52] Fix | Delete
#include <sys/types.h>
[53] Fix | Delete
[54] Fix | Delete
[55] Fix | Delete
typedef struct {
[56] Fix | Delete
struct _ftsent *fts_cur; /* current node */
[57] Fix | Delete
struct _ftsent *fts_child; /* linked list of children */
[58] Fix | Delete
struct _ftsent **fts_array; /* sort array */
[59] Fix | Delete
dev_t fts_dev; /* starting device # */
[60] Fix | Delete
char *fts_path; /* path for this descent */
[61] Fix | Delete
int fts_rfd; /* fd for root */
[62] Fix | Delete
int fts_pathlen; /* sizeof(path) */
[63] Fix | Delete
int fts_nitems; /* elements in the sort array */
[64] Fix | Delete
int (*fts_compar) (const void *, const void *); /* compare fn */
[65] Fix | Delete
[66] Fix | Delete
#define FTS_COMFOLLOW 0x0001 /* follow command line symlinks */
[67] Fix | Delete
#define FTS_LOGICAL 0x0002 /* logical walk */
[68] Fix | Delete
#define FTS_NOCHDIR 0x0004 /* don't change directories */
[69] Fix | Delete
#define FTS_NOSTAT 0x0008 /* don't get stat info */
[70] Fix | Delete
#define FTS_PHYSICAL 0x0010 /* physical walk */
[71] Fix | Delete
#define FTS_SEEDOT 0x0020 /* return dot and dot-dot */
[72] Fix | Delete
#define FTS_XDEV 0x0040 /* don't cross devices */
[73] Fix | Delete
#define FTS_WHITEOUT 0x0080 /* return whiteout information */
[74] Fix | Delete
#define FTS_OPTIONMASK 0x00ff /* valid user option mask */
[75] Fix | Delete
[76] Fix | Delete
#define FTS_NAMEONLY 0x0100 /* (private) child names only */
[77] Fix | Delete
#define FTS_STOP 0x0200 /* (private) unrecoverable error */
[78] Fix | Delete
int fts_options; /* fts_open options, global flags */
[79] Fix | Delete
} FTS;
[80] Fix | Delete
[81] Fix | Delete
#ifdef __USE_LARGEFILE64
[82] Fix | Delete
typedef struct {
[83] Fix | Delete
struct _ftsent64 *fts_cur; /* current node */
[84] Fix | Delete
struct _ftsent64 *fts_child; /* linked list of children */
[85] Fix | Delete
struct _ftsent64 **fts_array; /* sort array */
[86] Fix | Delete
dev_t fts_dev; /* starting device # */
[87] Fix | Delete
char *fts_path; /* path for this descent */
[88] Fix | Delete
int fts_rfd; /* fd for root */
[89] Fix | Delete
int fts_pathlen; /* sizeof(path) */
[90] Fix | Delete
int fts_nitems; /* elements in the sort array */
[91] Fix | Delete
int (*fts_compar) (const void *, const void *); /* compare fn */
[92] Fix | Delete
int fts_options; /* fts_open options, global flags */
[93] Fix | Delete
} FTS64;
[94] Fix | Delete
#endif
[95] Fix | Delete
[96] Fix | Delete
typedef struct _ftsent {
[97] Fix | Delete
struct _ftsent *fts_cycle; /* cycle node */
[98] Fix | Delete
struct _ftsent *fts_parent; /* parent directory */
[99] Fix | Delete
struct _ftsent *fts_link; /* next file in directory */
[100] Fix | Delete
long fts_number; /* local numeric value */
[101] Fix | Delete
void *fts_pointer; /* local address value */
[102] Fix | Delete
char *fts_accpath; /* access path */
[103] Fix | Delete
char *fts_path; /* root path */
[104] Fix | Delete
int fts_errno; /* errno for this node */
[105] Fix | Delete
int fts_symfd; /* fd for symlink */
[106] Fix | Delete
unsigned short fts_pathlen; /* strlen(fts_path) */
[107] Fix | Delete
unsigned short fts_namelen; /* strlen(fts_name) */
[108] Fix | Delete
[109] Fix | Delete
ino_t fts_ino; /* inode */
[110] Fix | Delete
dev_t fts_dev; /* device */
[111] Fix | Delete
nlink_t fts_nlink; /* link count */
[112] Fix | Delete
[113] Fix | Delete
#define FTS_ROOTPARENTLEVEL -1
[114] Fix | Delete
#define FTS_ROOTLEVEL 0
[115] Fix | Delete
short fts_level; /* depth (-1 to N) */
[116] Fix | Delete
[117] Fix | Delete
#define FTS_D 1 /* preorder directory */
[118] Fix | Delete
#define FTS_DC 2 /* directory that causes cycles */
[119] Fix | Delete
#define FTS_DEFAULT 3 /* none of the above */
[120] Fix | Delete
#define FTS_DNR 4 /* unreadable directory */
[121] Fix | Delete
#define FTS_DOT 5 /* dot or dot-dot */
[122] Fix | Delete
#define FTS_DP 6 /* postorder directory */
[123] Fix | Delete
#define FTS_ERR 7 /* error; errno is set */
[124] Fix | Delete
#define FTS_F 8 /* regular file */
[125] Fix | Delete
#define FTS_INIT 9 /* initialized only */
[126] Fix | Delete
#define FTS_NS 10 /* stat(2) failed */
[127] Fix | Delete
#define FTS_NSOK 11 /* no stat(2) requested */
[128] Fix | Delete
#define FTS_SL 12 /* symbolic link */
[129] Fix | Delete
#define FTS_SLNONE 13 /* symbolic link without target */
[130] Fix | Delete
#define FTS_W 14 /* whiteout object */
[131] Fix | Delete
unsigned short fts_info; /* user flags for FTSENT structure */
[132] Fix | Delete
[133] Fix | Delete
#define FTS_DONTCHDIR 0x01 /* don't chdir .. to the parent */
[134] Fix | Delete
#define FTS_SYMFOLLOW 0x02 /* followed a symlink to get here */
[135] Fix | Delete
unsigned short fts_flags; /* private flags for FTSENT structure */
[136] Fix | Delete
[137] Fix | Delete
#define FTS_AGAIN 1 /* read node again */
[138] Fix | Delete
#define FTS_FOLLOW 2 /* follow symbolic link */
[139] Fix | Delete
#define FTS_NOINSTR 3 /* no instructions */
[140] Fix | Delete
#define FTS_SKIP 4 /* discard node */
[141] Fix | Delete
unsigned short fts_instr; /* fts_set() instructions */
[142] Fix | Delete
[143] Fix | Delete
struct stat *fts_statp; /* stat(2) information */
[144] Fix | Delete
char fts_name[1]; /* file name */
[145] Fix | Delete
} FTSENT;
[146] Fix | Delete
[147] Fix | Delete
#ifdef __USE_LARGEFILE64
[148] Fix | Delete
typedef struct _ftsent64 {
[149] Fix | Delete
struct _ftsent64 *fts_cycle; /* cycle node */
[150] Fix | Delete
struct _ftsent64 *fts_parent; /* parent directory */
[151] Fix | Delete
struct _ftsent64 *fts_link; /* next file in directory */
[152] Fix | Delete
long fts_number; /* local numeric value */
[153] Fix | Delete
void *fts_pointer; /* local address value */
[154] Fix | Delete
char *fts_accpath; /* access path */
[155] Fix | Delete
char *fts_path; /* root path */
[156] Fix | Delete
int fts_errno; /* errno for this node */
[157] Fix | Delete
int fts_symfd; /* fd for symlink */
[158] Fix | Delete
unsigned short fts_pathlen; /* strlen(fts_path) */
[159] Fix | Delete
unsigned short fts_namelen; /* strlen(fts_name) */
[160] Fix | Delete
[161] Fix | Delete
ino64_t fts_ino; /* inode */
[162] Fix | Delete
dev_t fts_dev; /* device */
[163] Fix | Delete
nlink_t fts_nlink; /* link count */
[164] Fix | Delete
[165] Fix | Delete
short fts_level; /* depth (-1 to N) */
[166] Fix | Delete
[167] Fix | Delete
unsigned short fts_info; /* user flags for FTSENT structure */
[168] Fix | Delete
[169] Fix | Delete
unsigned short fts_flags; /* private flags for FTSENT structure */
[170] Fix | Delete
[171] Fix | Delete
unsigned short fts_instr; /* fts_set() instructions */
[172] Fix | Delete
[173] Fix | Delete
struct stat64 *fts_statp; /* stat(2) information */
[174] Fix | Delete
char fts_name[1]; /* file name */
[175] Fix | Delete
} FTSENT64;
[176] Fix | Delete
#endif
[177] Fix | Delete
[178] Fix | Delete
__BEGIN_DECLS
[179] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[180] Fix | Delete
FTSENT *fts_children (FTS *, int);
[181] Fix | Delete
int fts_close (FTS *);
[182] Fix | Delete
FTS *fts_open (char * const *, int,
[183] Fix | Delete
int (*)(const FTSENT **, const FTSENT **));
[184] Fix | Delete
FTSENT *fts_read (FTS *);
[185] Fix | Delete
int fts_set (FTS *, FTSENT *, int) __THROW;
[186] Fix | Delete
#else
[187] Fix | Delete
# ifdef __REDIRECT
[188] Fix | Delete
FTSENT *__REDIRECT (fts_children, (FTS *, int), fts64_children);
[189] Fix | Delete
int __REDIRECT (fts_close, (FTS *), fts64_close);
[190] Fix | Delete
FTS *__REDIRECT (fts_open, (char * const *, int,
[191] Fix | Delete
int (*)(const FTSENT **, const FTSENT **)),
[192] Fix | Delete
fts64_open);
[193] Fix | Delete
FTSENT *__REDIRECT (fts_read, (FTS *), fts64_read);
[194] Fix | Delete
int __REDIRECT_NTH (fts_set, (FTS *, FTSENT *, int), fts64_set);
[195] Fix | Delete
# else
[196] Fix | Delete
# define fts_children fts64_children
[197] Fix | Delete
# define fts_close fts64_close
[198] Fix | Delete
# define fts_open fts64_open
[199] Fix | Delete
# define fts_read fts64_read
[200] Fix | Delete
# define fts_set fts64_set
[201] Fix | Delete
# endif
[202] Fix | Delete
#endif
[203] Fix | Delete
#ifdef __USE_LARGEFILE64
[204] Fix | Delete
FTSENT64 *fts64_children (FTS64 *, int);
[205] Fix | Delete
int fts64_close (FTS64 *);
[206] Fix | Delete
FTS64 *fts64_open (char * const *, int,
[207] Fix | Delete
int (*)(const FTSENT64 **, const FTSENT64 **));
[208] Fix | Delete
FTSENT64 *fts64_read (FTS64 *);
[209] Fix | Delete
int fts64_set (FTS64 *, FTSENT64 *, int) __THROW;
[210] Fix | Delete
#endif
[211] Fix | Delete
__END_DECLS
[212] Fix | Delete
[213] Fix | Delete
#endif /* fts.h */
[214] Fix | Delete
[215] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function