1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 10:15:48 +02:00
Files
coreutils/lib/cycle-check.h
Jim Meyering ff5ea92271 Include stdbool.h.
Forward-declare `struct stat'.
2004-07-07 15:07:08 +00:00

33 lines
604 B
C

#ifndef CYCLE_CHECK_H
# define CYCLE_CHECK_H 1
/* Before including this file, you need something like the following:
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <stdbool.h>
so that the proper identifiers are all declared. */
# include <stdbool.h>
# include "dev-ino.h"
struct stat;
struct cycle_check_state
{
struct dev_ino dev_ino;
size_t chdir_counter;
long unsigned int magic;
};
void cycle_check_init (struct cycle_check_state *state);
bool cycle_check (struct cycle_check_state *state, struct stat const *sb);
#endif