File: compat.h

package info (click to toggle)
darcs 1.0.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,796 kB
  • ctags: 321
  • sloc: haskell: 14,370; sh: 941; ansic: 893; perl: 810; makefile: 49; xml: 14
file content (27 lines) | stat: -rw-r--r-- 553 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

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

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 get_raw_mode();
void set_raw_mode(int raw);

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 isnt_symlink(const char *file);

int stdout_is_a_pipe();

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