util.h revision 1.10 1 1.10 itojun /* $NetBSD: util.h,v 1.10 2003/07/12 13:47:44 itojun Exp $ */
2 1.10 itojun
3 1.10 itojun /*
4 1.10 itojun * Copyright (c) 1988, Larry Wall
5 1.10 itojun *
6 1.10 itojun * Redistribution and use in source and binary forms, with or without
7 1.10 itojun * modification, are permitted provided that the following condition
8 1.10 itojun * is met:
9 1.10 itojun * 1. Redistributions of source code must retain the above copyright
10 1.10 itojun * notice, this condition and the following disclaimer.
11 1.10 itojun *
12 1.10 itojun * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13 1.10 itojun * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14 1.10 itojun * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15 1.10 itojun * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16 1.10 itojun * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 1.10 itojun * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18 1.10 itojun * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19 1.10 itojun * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 1.10 itojun * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21 1.10 itojun * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22 1.10 itojun * SUCH DAMAGE.
23 1.10 itojun */
24 1.1 cgd
25 1.6 kristerw int move_file(char *, char *);
26 1.6 kristerw void copy_file(char *, char *);
27 1.8 kristerw void *xmalloc(size_t);
28 1.9 kristerw void *xrealloc(void *, size_t);
29 1.8 kristerw char *xstrdup(const char *);
30 1.6 kristerw void say(const char *, ...)
31 1.5 is __attribute__((__format__(__printf__, 1, 2)));
32 1.6 kristerw void fatal(const char *, ...)
33 1.5 is __attribute__((__format__(__printf__, 1, 2)));
34 1.6 kristerw void pfatal(const char *, ...)
35 1.5 is __attribute__((__format__(__printf__, 1, 2)));
36 1.6 kristerw void ask(const char *, ...)
37 1.5 is __attribute__((__format__(__printf__, 1, 2)));
38 1.6 kristerw void set_signals(int);
39 1.6 kristerw void ignore_signals(void);
40 1.6 kristerw void makedirs(char *, bool);
41 1.6 kristerw char *fetchname(char *, int, int);
42