1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/* $FreeBSD$ */
/*
* FreeBSD install - a package for the installation and maintainance
* of non-core utilities.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Jordan K. Hubbard
* 23 August 1993
*
* Include and define various things wanted by the info command.
*
*/
#ifndef _INST_INFO_H_INCLUDE
#define _INST_INFO_H_INCLUDE
#include <sys/queue.h>
#ifndef MAXINDEXSIZE
#define MAXINDEXSIZE 59
#endif
#ifndef MAXNAMESIZE
#define MAXNAMESIZE 20
#endif
#define SHOW_COMMENT 0x000001
#define SHOW_DESC 0x000002
#define SHOW_PLIST 0x000004
#define SHOW_INSTALL 0x000008
#define SHOW_DEINSTALL 0x000010
#define SHOW_REQUIRE 0x000020
#define SHOW_PREFIX 0x000040
#define SHOW_INDEX 0x000080
#define SHOW_FILES 0x000100
#define SHOW_DISPLAY 0x000200
#define SHOW_REQBY 0x000400
#define SHOW_MTREE 0x000800
#define SHOW_SIZE 0x001000
#define SHOW_ORIGIN 0x002000
#define SHOW_CKSUM 0x004000
#define SHOW_FMTREV 0x008000
#define SHOW_PTREV 0x010000
#define SHOW_DEPEND 0x020000
#define SHOW_PKGNAME 0x040000
#define SHOW_LPREV 0x100000
struct which_entry {
TAILQ_ENTRY(which_entry) next;
char file[PATH_MAX];
char package[PATH_MAX];
Boolean skip;
};
TAILQ_HEAD(which_head, which_entry);
extern int Flags;
extern Boolean QUIET;
extern Boolean UseBlkSz;
extern Boolean KeepPackage;
extern char *InfoPrefix;
extern char PlayPen[];
extern char *CheckPkg;
extern char *LookUpOrigin;
extern match_t MatchType;
extern struct which_head *whead;
extern void show_file(const char *, const char *);
extern void show_plist(const char *, Package *, plist_t, Boolean);
extern void show_files(const char *, Package *);
extern void show_index(const char *, const char *);
extern void show_size(const char *, Package *);
extern void show_cksum(const char *, Package *);
extern void show_origin(const char *, Package *);
extern void show_fmtrev(const char *, Package *);
#endif /* _INST_INFO_H_INCLUDE */
|