File: atomic_create.h

package info (click to toggle)
darcs 2.12.4-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,748 kB
  • sloc: haskell: 42,936; sh: 11,086; ansic: 837; perl: 129; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>

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 stdout_is_a_pipe();

int maybe_relink(const char *src, const char *dst, int careful);