Tue Feb 21 18:32:14 2012 UTC ()
Merge changes from src/external/bsd/pkg_install.


(wiz)
diff -r1.6 -r1.7 pkgsrc/pkgtools/pkg_install/files/bpm/bpm.1
diff -r1.4 -r1.5 pkgsrc/pkgtools/pkg_install/files/bpm/bpm.sh.in
diff -r1.32 -r1.33 pkgsrc/pkgtools/pkg_install/files/info/show.c
diff -r1.9 -r1.10 pkgsrc/pkgtools/pkg_install/files/lib/defs.h

cvs diff -r1.6 -r1.7 pkgsrc/pkgtools/pkg_install/files/bpm/Attic/bpm.1 (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/bpm/Attic/bpm.1 2009/02/08 23:12:10 1.6
+++ pkgsrc/pkgtools/pkg_install/files/bpm/Attic/bpm.1 2012/02/21 18:32:14 1.7
@@ -1,44 +1,41 @@ @@ -1,44 +1,41 @@
1.\" $NetBSD: bpm.1,v 1.6 2009/02/08 23:12:10 wiz Exp $ */ 1.\" $NetBSD: bpm.1,v 1.7 2012/02/21 18:32:14 wiz Exp $ */
2.\" 2.\"
 3.\" Copyright (c) 2003,2009 The NetBSD Foundation, Inc.
 4.\" All rights reserved.
3.\" 5.\"
4.\" Copyright (c) 2003 Alistair G. Crooks. All rights reserved. 6.\" This code is derived from software contributed to The NetBSD Foundation
 7.\" by Alistair Crooks (agc@NetBSD.org)
5.\" 8.\"
6.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
8.\" are met: 11.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 12.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 13.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 15.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 16.\" documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software 
15.\" must display the following acknowledgement: 
16.\" This product includes software developed by Alistair G. Crooks. 
17.\" 4. The name of the author may not be used to endorse or promote 
18.\" products derived from this software without specific prior written 
19.\" permission. 
20.\" 17.\"
21.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
22.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
25.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30.\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28.\" POSSIBILITY OF SUCH DAMAGE.
32.\" 29.\"
33.Dd August 3, 2007 30.Dd August 3, 2007
34.Dt BPM 1 31.Dt BPM 1
35.Os 32.Os
36.Sh NAME 33.Sh NAME
37.Nm bpm 34.Nm bpm
38.Nd menu-based binary package manager 35.Nd menu-based binary package manager
39.Sh SYNOPSIS 36.Sh SYNOPSIS
40.Nm 37.Nm
41.Op Fl hnVv 38.Op Fl hnVv
42.Op Fl b Ar baseURL 39.Op Fl b Ar baseURL
43.Op Fl m Ar machine 40.Op Fl m Ar machine
44.Op Fl r Ar release 41.Op Fl r Ar release

cvs diff -r1.4 -r1.5 pkgsrc/pkgtools/pkg_install/files/bpm/Attic/bpm.sh.in (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/bpm/Attic/bpm.sh.in 2007/08/02 23:30:20 1.4
+++ pkgsrc/pkgtools/pkg_install/files/bpm/Attic/bpm.sh.in 2012/02/21 18:32:14 1.5
@@ -1,45 +1,43 @@ @@ -1,45 +1,43 @@
1#! /bin/sh 1#! /bin/sh
2# 2#
3# $NetBSD: bpm.sh.in,v 1.4 2007/08/02 23:30:20 wiz Exp $ 3# $NetBSD: bpm.sh.in,v 1.5 2012/02/21 18:32:14 wiz Exp $
4# 4#
5# Copyright (c) 2003 Alistair G. Crooks. All rights reserved. 5# Copyright (c) 2003,2009 The NetBSD Foundation, Inc.
 6# All rights reserved.
 7#
 8# This code is derived from software contributed to The NetBSD Foundation
 9# by Alistair Crooks (agc@NetBSD.org)
6# 10#
7# Redistribution and use in source and binary forms, with or without 11# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions 12# modification, are permitted provided that the following conditions
9# are met: 13# are met:
10# 1. Redistributions of source code must retain the above copyright 14# 1. Redistributions of source code must retain the above copyright
11# notice, this list of conditions and the following disclaimer. 15# notice, this list of conditions and the following disclaimer.
12# 2. Redistributions in binary form must reproduce the above copyright 16# 2. Redistributions in binary form must reproduce the above copyright
13# notice, this list of conditions and the following disclaimer in the 17# notice, this list of conditions and the following disclaimer in the
14# documentation and/or other materials provided with the distribution. 18# documentation and/or other materials provided with the distribution.
15# 3. All advertising materials mentioning features or use of this software 19#
16# must display the following acknowledgement: 20# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17# This product includes software developed by Alistair G. Crooks. 21# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18# 4. The name of the author may not be used to endorse or promote 22# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19# products derived from this software without specific prior written 23# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20# permission. 24# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# 25# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 26# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 27# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 29# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30# POSSIBILITY OF SUCH DAMAGE.
27# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
28# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
29# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
30# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
31# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
32# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
33# 31#
34 32
35die() 33die()
36{ 34{
37 echo >&2 "$@" 35 echo >&2 "$@"
38 exit 1 36 exit 1
39} 37}
40 38
41check_prog() 39check_prog()
42{ 40{
43 _var="$1"; _name="$2" 41 _var="$1"; _name="$2"
44 42
45 eval _tmp=\"\$$_var\" 43 eval _tmp=\"\$$_var\"

cvs diff -r1.32 -r1.33 pkgsrc/pkgtools/pkg_install/files/info/show.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/info/show.c 2011/01/31 07:22:15 1.32
+++ pkgsrc/pkgtools/pkg_install/files/info/show.c 2012/02/21 18:32:14 1.33
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1/* $NetBSD: show.c,v 1.32 2011/01/31 07:22:15 agc Exp $ */ 1/* $NetBSD: show.c,v 1.33 2012/02/21 18:32:14 wiz Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10__RCSID("$NetBSD: show.c,v 1.32 2011/01/31 07:22:15 agc Exp $"); 10__RCSID("$NetBSD: show.c,v 1.33 2012/02/21 18:32:14 wiz Exp $");
11 11
12/* 12/*
13 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
14 * of non-core utilities. 14 * of non-core utilities.
15 * 15 *
16 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
17 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
18 * are met: 18 * are met:
19 * 1. Redistributions of source code must retain the above copyright 19 * 1. Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer. 20 * notice, this list of conditions and the following disclaimer.
21 * 2. Redistributions in binary form must reproduce the above copyright 21 * 2. Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the 22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the distribution. 23 * documentation and/or other materials provided with the distribution.
@@ -67,44 +67,44 @@ __RCSID("$NetBSD: show.c,v 1.32 2011/01/ @@ -67,44 +67,44 @@ __RCSID("$NetBSD: show.c,v 1.32 2011/01/
67 67
68/* Structure to define entries for the "show table" */ 68/* Structure to define entries for the "show table" */
69typedef struct show_t { 69typedef struct show_t {
70 pl_ent_t sh_type; /* type of entry */ 70 pl_ent_t sh_type; /* type of entry */
71 const char *sh_quiet; /* message when quiet */ 71 const char *sh_quiet; /* message when quiet */
72 const char *sh_verbose; /* message when verbose */ 72 const char *sh_verbose; /* message when verbose */
73} show_t; 73} show_t;
74 74
75/* 75/*
76 * The entries in this table must be ordered the same as 76 * The entries in this table must be ordered the same as
77 * pl_ent_t constants 77 * pl_ent_t constants
78 */ 78 */
79static const show_t showv[] = { 79static const show_t showv[] = {
80 {PLIST_FILE, "%s", "\tFile: %s"}, 80 {PLIST_FILE, "", "\tFile: "},
81 {PLIST_CWD, "@cwd %s", "\tCWD to: %s"}, 81 {PLIST_CWD, "@cwd ", "\tCWD to: "},
82 {PLIST_CMD, "@exec %s", "\tEXEC '%s'"}, 82 {PLIST_CMD, "@exec ", "\tEXEC ''"},
83 {PLIST_CHMOD, "@chmod %s", "\tCHMOD to %s"}, 83 {PLIST_CHMOD, "@chmod ", "\tCHMOD to "},
84 {PLIST_CHOWN, "@chown %s", "\tCHOWN to %s"}, 84 {PLIST_CHOWN, "@chown ", "\tCHOWN to "},
85 {PLIST_CHGRP, "@chgrp %s", "\tCHGRP to %s"}, 85 {PLIST_CHGRP, "@chgrp ", "\tCHGRP to "},
86 {PLIST_COMMENT, "@comment %s", "\tComment: %s"}, 86 {PLIST_COMMENT, "@comment ", "\tComment: "},
87 {PLIST_IGNORE, "@ignore", "Ignore next file:"}, 87 {PLIST_IGNORE, "@ignore", "Ignore next file:"},
88 {PLIST_NAME, "@name %s", "\tPackage name: %s"}, 88 {PLIST_NAME, "@name ", "\tPackage name: "},
89 {PLIST_UNEXEC, "@unexec %s", "\tUNEXEC '%s'"}, 89 {PLIST_UNEXEC, "@unexec ", "\tUNEXEC ''"},
90 {PLIST_SRC, "@src: %s", "\tSRC to: %s"}, 90 {PLIST_SRC, "@src: ", "\tSRC to: "},
91 {PLIST_DISPLAY, "@display %s", "\tInstall message file: %s"}, 91 {PLIST_DISPLAY, "@display ", "\tInstall message file: "},
92 {PLIST_PKGDEP, "@pkgdep %s", "\tPackage depends on: %s"}, 92 {PLIST_PKGDEP, "@pkgdep ", "\tPackage depends on: "},
93 {PLIST_DIR_RM, "@dirrm %s", "\tObsolete deinstall directory removal hint: %s"}, 93 {PLIST_DIR_RM, "@dirrm ", "\tObsolete deinstall directory removal hint: "},
94 {PLIST_OPTION, "@option %s", "\tPackage has option: %s"}, 94 {PLIST_OPTION, "@option ", "\tPackage has option: "},
95 {PLIST_PKGCFL, "@pkgcfl %s", "\tPackage conflicts with: %s"}, 95 {PLIST_PKGCFL, "@pkgcfl ", "\tPackage conflicts with: "},
96 {PLIST_BLDDEP, "@blddep %s", "\tPackage depends exactly on: %s"}, 96 {PLIST_BLDDEP, "@blddep ", "\tPackage depends exactly on: "},
97 {PLIST_PKGDIR, "@pkgdir %s", "\tManaged directory: %s"}, 97 {PLIST_PKGDIR, "@pkgdir ", "\tManaged directory: "},
98 {-1, NULL, NULL} 98 {-1, NULL, NULL}
99}; 99};
100 100
101static int print_string_as_var(const char *, const char *); 101static int print_string_as_var(const char *, const char *);
102 102
103void 103void
104show_file(const char *buf, const char *title, Boolean separator) 104show_file(const char *buf, const char *title, Boolean separator)
105{ 105{
106 size_t len; 106 size_t len;
107 107
108 if (!Quiet) 108 if (!Quiet)
109 printf("%s%s", InfoPrefix, title); 109 printf("%s%s", InfoPrefix, title);
110 110
@@ -153,59 +153,66 @@ show_index(const char *buf, const char * @@ -153,59 +153,66 @@ show_index(const char *buf, const char *
153void 153void
154show_plist(const char *title, package_t *plist, pl_ent_t type) 154show_plist(const char *title, package_t *plist, pl_ent_t type)
155{ 155{
156 plist_t *p; 156 plist_t *p;
157 Boolean ign; 157 Boolean ign;
158 158
159 if (!Quiet) { 159 if (!Quiet) {
160 printf("%s%s", InfoPrefix, title); 160 printf("%s%s", InfoPrefix, title);
161 } 161 }
162 for (ign = FALSE, p = plist->head; p; p = p->next) { 162 for (ign = FALSE, p = plist->head; p; p = p->next) {
163 if (p->type == type || type == PLIST_SHOW_ALL) { 163 if (p->type == type || type == PLIST_SHOW_ALL) {
164 switch (p->type) { 164 switch (p->type) {
165 case PLIST_FILE: 165 case PLIST_FILE:
166 printf(Quiet ? showv[p->type].sh_quiet : showv[p->type].sh_verbose, p->name); 166 printf("%s%s",
 167 Quiet ? showv[p->type].sh_quiet :
 168 showv[p->type].sh_verbose, p->name);
167 if (ign) { 169 if (ign) {
168 if (!Quiet) { 170 if (!Quiet) {
169 printf(" (ignored)"); 171 printf(" (ignored)");
170 } 172 }
171 ign = FALSE; 173 ign = FALSE;
172 } 174 }
173 break; 175 break;
174 case PLIST_CHMOD: 176 case PLIST_CHMOD:
175 case PLIST_CHOWN: 177 case PLIST_CHOWN:
176 case PLIST_CHGRP: 178 case PLIST_CHGRP:
177 printf(Quiet ? showv[p->type].sh_quiet : showv[p->type].sh_verbose, 179 printf("%s%s",
 180 Quiet ? showv[p->type].sh_quiet :
 181 showv[p->type].sh_verbose,
178 p->name ? p->name : "(clear default)"); 182 p->name ? p->name : "(clear default)");
179 break; 183 break;
180 case PLIST_IGNORE: 184 case PLIST_IGNORE:
181 printf(Quiet ? showv[p->type].sh_quiet : showv[p->type].sh_verbose); 185 printf("%s", Quiet ? showv[p->type].sh_quiet :
 186 showv[p->type].sh_verbose);
182 ign = TRUE; 187 ign = TRUE;
183 break; 188 break;
184 case PLIST_CWD: 189 case PLIST_CWD:
185 case PLIST_CMD: 190 case PLIST_CMD:
186 case PLIST_SRC: 191 case PLIST_SRC:
187 case PLIST_UNEXEC: 192 case PLIST_UNEXEC:
188 case PLIST_COMMENT: 193 case PLIST_COMMENT:
189 case PLIST_NAME: 194 case PLIST_NAME:
190 case PLIST_DISPLAY: 195 case PLIST_DISPLAY:
191 case PLIST_PKGDEP: 196 case PLIST_PKGDEP:
192 case PLIST_DIR_RM: 197 case PLIST_DIR_RM:
193 case PLIST_OPTION: 198 case PLIST_OPTION:
194 case PLIST_PKGCFL: 199 case PLIST_PKGCFL:
195 case PLIST_BLDDEP: 200 case PLIST_BLDDEP:
196 case PLIST_PKGDIR: 201 case PLIST_PKGDIR:
197 printf(Quiet ? showv[p->type].sh_quiet : showv[p->type].sh_verbose, 202 printf("%s%s",
198 (p->name) ? p->name : "(null)"); 203 Quiet ? showv[p->type].sh_quiet :
 204 showv[p->type].sh_verbose,
 205 p->name ? p->name : "(null)");
199 break; 206 break;
200 default: 207 default:
201 warnx("unknown command type %d (%s)", p->type, p->name); 208 warnx("unknown command type %d (%s)", p->type, p->name);
202 } 209 }
203 (void) fputc('\n', stdout); 210 (void) fputc('\n', stdout);
204 } 211 }
205 } 212 }
206} 213}
207 214
208/* 215/*
209 * Show all files in the packing list (except ignored ones) 216 * Show all files in the packing list (except ignored ones)
210 */ 217 */
211void 218void

cvs diff -r1.9 -r1.10 pkgsrc/pkgtools/pkg_install/files/lib/defs.h (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/defs.h 2008/04/18 12:01:46 1.9
+++ pkgsrc/pkgtools/pkg_install/files/lib/defs.h 2012/02/21 18:32:14 1.10
@@ -1,44 +1,42 @@ @@ -1,44 +1,42 @@
1/* $NetBSD: defs.h,v 1.9 2008/04/18 12:01:46 joerg Exp $ */ 1/* $NetBSD: defs.h,v 1.10 2012/02/21 18:32:14 wiz Exp $ */
2 2
3/* 3/*-
4 * Copyright (c) 1999-2000 Alistair G. Crooks. All rights reserved. 4 * Copyright (c) 1999,2000,2009 The NetBSD Foundation, Inc.
 5 * All rights reserved.
 6 *
 7 * This code is derived from software contributed to The NetBSD Foundation
 8 * by Alistair Crooks (agc@NetBSD.org)
5 * 9 *
6 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
8 * are met: 12 * are met:
9 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright 15 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the 16 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution. 17 * documentation and/or other materials provided with the distribution.
14 * 3. All advertising materials mentioning features or use of this software 
15 * must display the following acknowledgement: 
16 * This product includes software developed by Alistair G. Crooks. 
17 * 4. The name of the author may not be used to endorse or promote 
18 * products derived from this software without specific prior written 
19 * permission. 
20 * 18 *
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
22 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
25 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
32 */ 30 */
33#ifndef DEFS_H_ 31#ifndef DEFS_H_
34#define DEFS_H_ 32#define DEFS_H_
35 33
36#if HAVE_CONFIG_H 34#if HAVE_CONFIG_H
37#include "config.h" 35#include "config.h"
38#endif 36#endif
39#include <nbcompat.h> 37#include <nbcompat.h>
40#if HAVE_ERR_H 38#if HAVE_ERR_H
41#include <err.h> 39#include <err.h>
42#endif 40#endif
43#if HAVE_STDLIB_H 41#if HAVE_STDLIB_H
44#include <stdlib.h> 42#include <stdlib.h>