1 2 #include <sys/stat.h> 3 #include <string.h> 4 #include <stdlib.h> 5 6 int sloppy_atomic_create(const char *p); 7 int atomic_create(const char *p); 8 9 #ifdef _WIN32 10 int mkstemp(char *p); 11 int pipe( int fildes[2] ); 12 int renamefile(const char *from, const char *to); 13 #endif 14 15 int stdout_is_a_pipe(); 16 17 int maybe_relink(const char *src, const char *dst, int careful); 18