Deleted Added
full compact
main.c (112572) main.c (112579)
1/*
2 *
3 * FreeBSD install - a package for the installation and maintainance
4 * of non-core utilities.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 6 unchanged lines hidden (view full) ---

15 * Jordan K. Hubbard
16 * 18 July 1993
17 *
18 * This is the info module.
19 *
20 */
21
22#include <sys/cdefs.h>
1/*
2 *
3 * FreeBSD install - a package for the installation and maintainance
4 * of non-core utilities.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 6 unchanged lines hidden (view full) ---

15 * Jordan K. Hubbard
16 * 18 July 1993
17 *
18 * This is the info module.
19 *
20 */
21
22#include <sys/cdefs.h>
23__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/info/main.c 112572 2003-03-25 00:51:41Z mdodd $");
23__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/info/main.c 112579 2003-03-25 01:22:42Z mdodd $");
24
25#include "lib.h"
26#include "info.h"
27#include <err.h>
28
24
25#include "lib.h"
26#include "info.h"
27#include <err.h>
28
29static char Options[] = "acdDe:fgGhiIkl:LmoO:pPqQrRst:vVW:x";
29static char Options[] = "abcdDe:fgGhiIkl:LmoO:pPqQrRst:vVW:x";
30
31int Flags = 0;
32match_t MatchType = MATCH_GLOB;
33Boolean Quiet = FALSE;
34Boolean QUIET = FALSE;
30
31int Flags = 0;
32match_t MatchType = MATCH_GLOB;
33Boolean Quiet = FALSE;
34Boolean QUIET = FALSE;
35Boolean UseBlkSz = FALSE;
35char *InfoPrefix = (char *)(uintptr_t)"";
36char PlayPen[FILENAME_MAX];
37char *CheckPkg = NULL;
38char *LookUpOrigin = NULL;
39struct which_head *whead;
40
41static void usage __P((void));
42

--- 15 unchanged lines hidden (view full) ---

58 Flags = SHOW_INDEX;
59 }
60 else while ((ch = getopt(argc, argv, Options)) != -1) {
61 switch(ch) {
62 case 'a':
63 MatchType = MATCH_ALL;
64 break;
65
36char *InfoPrefix = (char *)(uintptr_t)"";
37char PlayPen[FILENAME_MAX];
38char *CheckPkg = NULL;
39char *LookUpOrigin = NULL;
40struct which_head *whead;
41
42static void usage __P((void));
43

--- 15 unchanged lines hidden (view full) ---

59 Flags = SHOW_INDEX;
60 }
61 else while ((ch = getopt(argc, argv, Options)) != -1) {
62 switch(ch) {
63 case 'a':
64 MatchType = MATCH_ALL;
65 break;
66
67 case 'b':
68 UseBlkSz = TRUE;
69 break;
70
66 case 'v':
67 Verbose = TRUE;
68 /* Reasonable definition of 'everything' */
69 Flags = SHOW_COMMENT | SHOW_DESC | SHOW_PLIST | SHOW_INSTALL |
70 SHOW_DEINSTALL | SHOW_REQUIRE | SHOW_DISPLAY | SHOW_MTREE;
71 break;
72
73 case 'I':

--- 181 unchanged lines hidden ---
71 case 'v':
72 Verbose = TRUE;
73 /* Reasonable definition of 'everything' */
74 Flags = SHOW_COMMENT | SHOW_DESC | SHOW_PLIST | SHOW_INSTALL |
75 SHOW_DEINSTALL | SHOW_REQUIRE | SHOW_DISPLAY | SHOW_MTREE;
76 break;
77
78 case 'I':

--- 181 unchanged lines hidden ---