8158 Want named threads API
[unleashed.git] / usr / src / head / pkginfo.h
blob702f9e0325a7719da285c5685cf3a31c9cb5d657
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
23 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
26 /* All Rights Reserved */
28 #ifndef _PKGINFO_H
29 #define _PKGINFO_H
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
35 #define PI_INSTALLED 0
36 #define PI_PARTIAL 1
37 #define PI_PRESVR4 2
38 #define PI_UNKNOWN 3
39 #define PI_SPOOLED 4
41 struct pkginfo {
42 char *pkginst;
43 char *name;
44 char *arch;
45 char *version;
46 char *vendor;
47 char *basedir;
48 char *catg;
49 char status;
52 extern char *pkgdir;
54 extern char *pkgparam(char *, char *);
55 extern int pkginfo(struct pkginfo *, char *, ...),
56 pkgnmchk(char *, char *, int);
58 #ifdef __cplusplus
60 #endif
62 #endif /* _PKGINFO_H */