xref: /netbsd-src/usr.bin/patch/util.h (revision d710132b4b8ce7f7cccaaf660cb16aa16b4077a0)
1 /*	$NetBSD: util.h,v 1.9 2003/05/30 18:14:13 kristerw Exp $	*/
2 
3 int move_file(char *, char *);
4 void copy_file(char *, char *);
5 void *xmalloc(size_t);
6 void *xrealloc(void *, size_t);
7 char *xstrdup(const char *);
8 void say(const char *, ...)
9      __attribute__((__format__(__printf__, 1, 2)));
10 void fatal(const char *, ...)
11      __attribute__((__format__(__printf__, 1, 2)));
12 void pfatal(const char *, ...)
13      __attribute__((__format__(__printf__, 1, 2)));
14 void ask(const char *, ...)
15      __attribute__((__format__(__printf__, 1, 2)));
16 void set_signals(int);
17 void ignore_signals(void);
18 void makedirs(char *, bool);
19 char *fetchname(char *, int, int);
20