xref: /openbsd-src/usr.bin/patch/util.h (revision db3296cf5c1dd9058ceecc3a29fe4aaa0bd26000)
1 /*	$OpenBSD: util.h,v 1.10 2003/07/28 18:35:36 otto Exp $	*/
2 
3 char		*fetchname(const char *, int, int);
4 int		backup_file(const char *);
5 int		move_file(const char *, const char *);
6 int		copy_file(const char *, const char *);
7 void		say(const char *, ...)
8 		    __attribute__((__format__(__printf__, 1, 2)));
9 void		fatal(const char *, ...)
10 		    __attribute__((__format__(__printf__, 1, 2)));
11 void		pfatal(const char *, ...)
12 		    __attribute__((__format__(__printf__, 1, 2)));
13 void		ask(const char *, ...)
14 		    __attribute__((__format__(__printf__, 1, 2)));
15 char		*savestr(const char *);
16 void		set_signals(int);
17 void		ignore_signals(void);
18 void		makedirs(const char *, bool);
19 void		version(void);
20 void            my_exit(int) __attribute__((noreturn));
21