summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/util.h
blob: 17e7747c5a8e120e3084b50165fbf37dc47cb03b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*	$OpenBSD: util.h,v 1.8 2003/07/22 17:21:07 deraadt Exp $	*/

char		*fetchname(char *, int, int);
int		move_file(char *, char *);
void		copy_file(char *, char *);
void		say(char *, ...);
void		fatal(char *, ...)
		    __attribute__((__format__(__printf__, 1, 2)));
void		pfatal(char *, ...)
		    __attribute__((__format__(__printf__, 1, 2)));
void		ask(char *, ...)
		    __attribute__((__format__(__printf__, 1, 2)));
char		*savestr(char *);
void		set_signals(int);
void		ignore_signals(void);
void		makedirs(char *, bool);
void		version(void);
void            my_exit(int) __attribute__((noreturn));