(eval, eval7, eval6, eval5, eval4, eval3, eval2, eval1):
[coreutils.git] / lib / cycle-check.h
blob5f2ad1dc17afcc11d8dc5ca73d29453b51382846
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 #include <stdbool.h>
15 so that the proper identifiers are all declared. */
17 # include "dev-ino.h"
19 struct cycle_check_state
21 struct dev_ino dev_ino;
22 size_t chdir_counter;
23 long unsigned int magic;
26 void cycle_check_init (struct cycle_check_state *state);
27 bool cycle_check (struct cycle_check_state *state, struct stat const *sb);
29 #endif