#include #include #include int sloppy_atomic_create(const char *p); int atomic_create(const char *p); #ifdef _WIN32 int mkstemp(char *p); int pipe( int fildes[2] ); int renamefile(const char *from, const char *to); #endif int open_read(const char *fname); int open_write(const char *fname); int smart_wait(int pid); int execvp_no_vtalarm(const char *file, char *const argv[]); int is_symlink(const char *file); int stdout_is_a_pipe(); int maybe_relink(const char *src, const char *dst, int careful);