(CLEANFILES): Add generated files: ftw.h search.h.
[coreutils.git] / lib / cycle-check.h
blob6f8c55d5d3e059eb7b63d3ff36035c13c1a309f1
1 #ifndef CYCLE_CHECK_H
2 # define CYCLE_CHECK_H 1
4 /* Before including this file, you need something like the following:
6 #if HAVE_CONFIG_H
7 # include <config.h>
8 #endif
10 #include <sys/types.h>
11 #include <sys/stat.h>
13 #if HAVE_STDBOOL_H
14 # include <stdbool.h>
15 #else
16 typedef enum {false = 0, true = 1} bool;
17 #endif
19 so that the proper identifiers are all declared. */
21 # include "dev-ino.h"
23 struct cycle_check_state
25 struct dev_ino dev_ino;
26 size_t chdir_counter;
27 long unsigned int magic;
30 void cycle_check_init (struct cycle_check_state *state);
31 bool cycle_check (struct cycle_check_state *state, struct stat const *sb);
33 #endif