summaryrefslogtreecommitdiff
path: root/usr.bin/patch/util.h
blob: ac2b08feb66855e4a0ea23a8cde968d842e9879f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*	$NetBSD: util.h,v 1.8 2002/03/16 22:36:42 kristerw Exp $	*/

int move_file(char *, char *);
void copy_file(char *, char *);
void *xmalloc(size_t);
char *xstrdup(const char *);
char *savestr(char *);
void say(const char *, ...)
     __attribute__((__format__(__printf__, 1, 2)));
void fatal(const char *, ...)
     __attribute__((__format__(__printf__, 1, 2)));
void pfatal(const char *, ...)
     __attribute__((__format__(__printf__, 1, 2)));
void ask(const char *, ...)
     __attribute__((__format__(__printf__, 1, 2)));
void set_signals(int);
void ignore_signals(void);
void makedirs(char *, bool);
char *fetchname(char *, int, int);