Remove terminating semicolons from SYSCTL_ADD_* macros. This will allow to
[dragonfly/port-amd64.git] / usr.bin / patch / util.h
blob3c99a6b46074c13a70166c0161951f1474b953ed
1 /*
2 * $OpenBSD: util.h,v 1.13 2004/08/05 21:47:24 deraadt Exp $
3 * $DragonFly: src/usr.bin/patch/util.h,v 1.1 2004/09/24 18:44:28 joerg Exp $
4 */
6 /*
7 * patch - a program to apply diffs to original files
8 *
9 * Copyright 1986, Larry Wall
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following condition is met:
13 * 1. Redistributions of source code must retain the above copyright notice,
14 * this condition and the following disclaimer.
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
28 * -C option added in 1998, original code by Marc Espie, based on FreeBSD
29 * behaviour
32 char *fetchname(const char *, bool *, int);
33 char *checked_in(char *);
34 int backup_file(const char *);
35 int move_file(const char *, const char *);
36 int copy_file(const char *, const char *);
37 void say(const char *, ...)
38 __attribute__((__format__(__printf__, 1, 2)));
39 void fatal(const char *, ...)
40 __attribute__((__format__(__printf__, 1, 2)));
41 void pfatal(const char *, ...)
42 __attribute__((__format__(__printf__, 1, 2)));
43 void ask(const char *, ...)
44 __attribute__((__format__(__printf__, 1, 2)));
45 char *savestr(const char *);
46 void set_signals(int);
47 void ignore_signals(void);
48 void makedirs(const char *, bool);
49 void version(void);
50 void my_exit(int) __attribute__((noreturn));