#ifndef SUIT_STAMP_H #define SUIT_STAMP_H #include <stddef.h> constexpr int EXIT_UNCHANGED = 0; constexpr int EXIT_CHANGED = 10; constexpr int EXIT_NO_STAMP = 11; constexpr int EXIT_BAD_STAMP = 12; constexpr size_t STAMP_FILE_MAX = 1048576; constexpr size_t STAMP_PATH_MAX = 4096; // Writes $SUIT_HOME/stamp (default ~/.suit/stamp) atomically. Returns 0 or a // nonzero exit code after reporting on stderr. int stamp_write(int npaths, char *const *paths); // The no-change compare. Reads the stamp, stats each path, and writes only // to stdout and stderr: no file is created or changed and nothing is // allocated. int stamp_run(void); #endif