Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: ftw.h
/* Copyright (C) 1992-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* X/Open Portability Guide 4.2: ftw.h
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
#ifndef _FTW_H
[21] Fix | Delete
#define _FTW_H 1
[22] Fix | Delete
[23] Fix | Delete
#include <features.h>
[24] Fix | Delete
[25] Fix | Delete
#include <sys/types.h>
[26] Fix | Delete
#include <sys/stat.h>
[27] Fix | Delete
[28] Fix | Delete
[29] Fix | Delete
__BEGIN_DECLS
[30] Fix | Delete
[31] Fix | Delete
/* Values for the FLAG argument to the user function passed to `ftw'
[32] Fix | Delete
and 'nftw'. */
[33] Fix | Delete
enum
[34] Fix | Delete
{
[35] Fix | Delete
FTW_F, /* Regular file. */
[36] Fix | Delete
#define FTW_F FTW_F
[37] Fix | Delete
FTW_D, /* Directory. */
[38] Fix | Delete
#define FTW_D FTW_D
[39] Fix | Delete
FTW_DNR, /* Unreadable directory. */
[40] Fix | Delete
#define FTW_DNR FTW_DNR
[41] Fix | Delete
FTW_NS, /* Unstatable file. */
[42] Fix | Delete
#define FTW_NS FTW_NS
[43] Fix | Delete
[44] Fix | Delete
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
[45] Fix | Delete
[46] Fix | Delete
FTW_SL, /* Symbolic link. */
[47] Fix | Delete
# define FTW_SL FTW_SL
[48] Fix | Delete
#endif
[49] Fix | Delete
[50] Fix | Delete
#ifdef __USE_XOPEN_EXTENDED
[51] Fix | Delete
/* These flags are only passed from the `nftw' function. */
[52] Fix | Delete
FTW_DP, /* Directory, all subdirs have been visited. */
[53] Fix | Delete
# define FTW_DP FTW_DP
[54] Fix | Delete
FTW_SLN /* Symbolic link naming non-existing file. */
[55] Fix | Delete
# define FTW_SLN FTW_SLN
[56] Fix | Delete
[57] Fix | Delete
#endif /* extended X/Open */
[58] Fix | Delete
};
[59] Fix | Delete
[60] Fix | Delete
[61] Fix | Delete
#ifdef __USE_XOPEN_EXTENDED
[62] Fix | Delete
/* Flags for fourth argument of `nftw'. */
[63] Fix | Delete
enum
[64] Fix | Delete
{
[65] Fix | Delete
FTW_PHYS = 1, /* Perform physical walk, ignore symlinks. */
[66] Fix | Delete
# define FTW_PHYS FTW_PHYS
[67] Fix | Delete
FTW_MOUNT = 2, /* Report only files on same file system as the
[68] Fix | Delete
argument. */
[69] Fix | Delete
# define FTW_MOUNT FTW_MOUNT
[70] Fix | Delete
FTW_CHDIR = 4, /* Change to current directory while processing it. */
[71] Fix | Delete
# define FTW_CHDIR FTW_CHDIR
[72] Fix | Delete
FTW_DEPTH = 8 /* Report files in directory before directory itself.*/
[73] Fix | Delete
# define FTW_DEPTH FTW_DEPTH
[74] Fix | Delete
# ifdef __USE_GNU
[75] Fix | Delete
,
[76] Fix | Delete
FTW_ACTIONRETVAL = 16 /* Assume callback to return FTW_* values instead of
[77] Fix | Delete
zero to continue and non-zero to terminate. */
[78] Fix | Delete
# define FTW_ACTIONRETVAL FTW_ACTIONRETVAL
[79] Fix | Delete
# endif
[80] Fix | Delete
};
[81] Fix | Delete
[82] Fix | Delete
#ifdef __USE_GNU
[83] Fix | Delete
/* Return values from callback functions. */
[84] Fix | Delete
enum
[85] Fix | Delete
{
[86] Fix | Delete
FTW_CONTINUE = 0, /* Continue with next sibling or for FTW_D with the
[87] Fix | Delete
first child. */
[88] Fix | Delete
# define FTW_CONTINUE FTW_CONTINUE
[89] Fix | Delete
FTW_STOP = 1, /* Return from `ftw' or `nftw' with FTW_STOP as return
[90] Fix | Delete
value. */
[91] Fix | Delete
# define FTW_STOP FTW_STOP
[92] Fix | Delete
FTW_SKIP_SUBTREE = 2, /* Only meaningful for FTW_D: Don't walk through the
[93] Fix | Delete
subtree, instead just continue with its next
[94] Fix | Delete
sibling. */
[95] Fix | Delete
# define FTW_SKIP_SUBTREE FTW_SKIP_SUBTREE
[96] Fix | Delete
FTW_SKIP_SIBLINGS = 3,/* Continue with FTW_DP callback for current directory
[97] Fix | Delete
(if FTW_DEPTH) and then its siblings. */
[98] Fix | Delete
# define FTW_SKIP_SIBLINGS FTW_SKIP_SIBLINGS
[99] Fix | Delete
};
[100] Fix | Delete
#endif
[101] Fix | Delete
[102] Fix | Delete
/* Structure used for fourth argument to callback function for `nftw'. */
[103] Fix | Delete
struct FTW
[104] Fix | Delete
{
[105] Fix | Delete
int base;
[106] Fix | Delete
int level;
[107] Fix | Delete
};
[108] Fix | Delete
#endif /* extended X/Open */
[109] Fix | Delete
[110] Fix | Delete
[111] Fix | Delete
/* Convenient types for callback functions. */
[112] Fix | Delete
typedef int (*__ftw_func_t) (const char *__filename,
[113] Fix | Delete
const struct stat *__status, int __flag);
[114] Fix | Delete
#ifdef __USE_LARGEFILE64
[115] Fix | Delete
typedef int (*__ftw64_func_t) (const char *__filename,
[116] Fix | Delete
const struct stat64 *__status, int __flag);
[117] Fix | Delete
#endif
[118] Fix | Delete
#ifdef __USE_XOPEN_EXTENDED
[119] Fix | Delete
typedef int (*__nftw_func_t) (const char *__filename,
[120] Fix | Delete
const struct stat *__status, int __flag,
[121] Fix | Delete
struct FTW *__info);
[122] Fix | Delete
# ifdef __USE_LARGEFILE64
[123] Fix | Delete
typedef int (*__nftw64_func_t) (const char *__filename,
[124] Fix | Delete
const struct stat64 *__status,
[125] Fix | Delete
int __flag, struct FTW *__info);
[126] Fix | Delete
# endif
[127] Fix | Delete
#endif
[128] Fix | Delete
[129] Fix | Delete
/* Call a function on every element in a directory tree.
[130] Fix | Delete
[131] Fix | Delete
This function is a possible cancellation point and therefore not
[132] Fix | Delete
marked with __THROW. */
[133] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[134] Fix | Delete
extern int ftw (const char *__dir, __ftw_func_t __func, int __descriptors)
[135] Fix | Delete
__nonnull ((1, 2));
[136] Fix | Delete
#else
[137] Fix | Delete
# ifdef __REDIRECT
[138] Fix | Delete
extern int __REDIRECT (ftw, (const char *__dir, __ftw_func_t __func,
[139] Fix | Delete
int __descriptors), ftw64) __nonnull ((1, 2));
[140] Fix | Delete
# else
[141] Fix | Delete
# define ftw ftw64
[142] Fix | Delete
# endif
[143] Fix | Delete
#endif
[144] Fix | Delete
#ifdef __USE_LARGEFILE64
[145] Fix | Delete
extern int ftw64 (const char *__dir, __ftw64_func_t __func,
[146] Fix | Delete
int __descriptors) __nonnull ((1, 2));
[147] Fix | Delete
#endif
[148] Fix | Delete
[149] Fix | Delete
#ifdef __USE_XOPEN_EXTENDED
[150] Fix | Delete
/* Call a function on every element in a directory tree. FLAG allows
[151] Fix | Delete
to specify the behaviour more detailed.
[152] Fix | Delete
[153] Fix | Delete
This function is a possible cancellation point and therefore not
[154] Fix | Delete
marked with __THROW. */
[155] Fix | Delete
# ifndef __USE_FILE_OFFSET64
[156] Fix | Delete
extern int nftw (const char *__dir, __nftw_func_t __func, int __descriptors,
[157] Fix | Delete
int __flag) __nonnull ((1, 2));
[158] Fix | Delete
# else
[159] Fix | Delete
# ifdef __REDIRECT
[160] Fix | Delete
extern int __REDIRECT (nftw, (const char *__dir, __nftw_func_t __func,
[161] Fix | Delete
int __descriptors, int __flag), nftw64)
[162] Fix | Delete
__nonnull ((1, 2));
[163] Fix | Delete
# else
[164] Fix | Delete
# define nftw nftw64
[165] Fix | Delete
# endif
[166] Fix | Delete
# endif
[167] Fix | Delete
# ifdef __USE_LARGEFILE64
[168] Fix | Delete
extern int nftw64 (const char *__dir, __nftw64_func_t __func,
[169] Fix | Delete
int __descriptors, int __flag) __nonnull ((1, 2));
[170] Fix | Delete
# endif
[171] Fix | Delete
#endif
[172] Fix | Delete
[173] Fix | Delete
__END_DECLS
[174] Fix | Delete
[175] Fix | Delete
#endif /* ftw.h */
[176] Fix | Delete
[177] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function