2003-05-30 22:14:13 +04:00
|
|
|
/* $NetBSD: util.h,v 1.9 2003/05/30 18:14:13 kristerw Exp $ */
|
1993-04-09 15:33:50 +04:00
|
|
|
|
2002-03-09 00:57:33 +03:00
|
|
|
int move_file(char *, char *);
|
|
|
|
void copy_file(char *, char *);
|
2002-03-17 01:36:42 +03:00
|
|
|
void *xmalloc(size_t);
|
2003-05-30 22:14:13 +04:00
|
|
|
void *xrealloc(void *, size_t);
|
2002-03-17 01:36:42 +03:00
|
|
|
char *xstrdup(const char *);
|
2002-03-09 00:57:33 +03:00
|
|
|
void say(const char *, ...)
|
2000-10-11 18:46:00 +04:00
|
|
|
__attribute__((__format__(__printf__, 1, 2)));
|
2002-03-09 00:57:33 +03:00
|
|
|
void fatal(const char *, ...)
|
2000-10-11 18:46:00 +04:00
|
|
|
__attribute__((__format__(__printf__, 1, 2)));
|
2002-03-09 00:57:33 +03:00
|
|
|
void pfatal(const char *, ...)
|
2000-10-11 18:46:00 +04:00
|
|
|
__attribute__((__format__(__printf__, 1, 2)));
|
2002-03-09 00:57:33 +03:00
|
|
|
void ask(const char *, ...)
|
2000-10-11 18:46:00 +04:00
|
|
|
__attribute__((__format__(__printf__, 1, 2)));
|
2002-03-09 00:57:33 +03:00
|
|
|
void set_signals(int);
|
|
|
|
void ignore_signals(void);
|
|
|
|
void makedirs(char *, bool);
|
|
|
|
char *fetchname(char *, int, int);
|