This file is indexed.

/usr/include/afs/cmd.h is in libopenafs-dev 1.8.0~pre5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/*
 * cmd.h:
 * This file is automatically generated; please do not edit it.
 */
/* Including ./cmd.p.h at beginning of cmd.h file. */

/*
 * Copyright 2000, International Business Machines Corporation and others.
 * All Rights Reserved.
 *
 * This software has been released under the terms of the IBM Public
 * License.  For details, see the LICENSE file in the top-level source
 * directory or online at http://www.openafs.org/dl/license10.html
 */

#ifndef __CMD_INCL__
#define	__CMD_INCL__	    1

/* parmdesc types */
#define	CMD_FLAG	1	/* no parms */
#define	CMD_SINGLE	2	/* one parm */
#define	CMD_LIST	3	/* two parms */
#define CMD_SINGLE_OR_FLAG 4	/* one parm or flag */

/* syndesc flags */
#define	CMD_ALIAS	1	/* this is an alias */
#define CMD_HIDDEN      4	/* A hidden command - similar to CMD_HIDE */

#define CMD_HELPPARM	(CMD_MAXPARMS-1)	/* last one is used by -help switch */
#define	CMD_MAXPARMS	64	/* max number of parm types to a cmd line */

/* parse items are here */
struct cmd_item {
    struct cmd_item *next;
    char *data;
};

struct cmd_parmdesc {
    char *name;			/* switch name */
    int type;			/* flag, single or list */
    struct cmd_item *items;	/* list of cmd items */
    afs_int32 flags;		/* flags */
    char *help;			/* optional help descr */
    struct cmd_item *aliases;   /* optional aliases */
};

/* cmd_parmdesc flags */
#define	CMD_REQUIRED	    0
#define	CMD_OPTIONAL	    1
#define	CMD_EXPANDS	    2	/* if list, try to eat tokens through eoline, instead of just 1 */
#define CMD_HIDE            4	/* A hidden option */
#define	CMD_PROCESSED	    8
#define CMD_NOABBRV	   16   /* Abbreviation not supported */

struct cmd_syndesc {
    struct cmd_syndesc *next;	/* next one in system list */
    struct cmd_syndesc *nextAlias;	/* next in alias chain */
    struct cmd_syndesc *aliasOf;	/* back ptr for aliases */
    char *name;			/* subcommand name */
    char *a0name;		/* command name from argv[0] */
    char *help;			/* help description */
    int (*proc) (struct cmd_syndesc * ts, void *arock);
    void *rock;
    int nParms;			/* number of parms */
    afs_uint32 flags;		/* random flags */
    struct cmd_parmdesc parms[CMD_MAXPARMS];	/* parms themselves */
};

extern struct cmd_syndesc *cmd_CreateSyntax(char *namep,
					    int (*aprocp) (struct cmd_syndesc
							   * ts, void *arock),
					    void *rockp, afs_uint32 aflags, char *helpp);
extern int
  cmd_SetBeforeProc(int (*aproc) (struct cmd_syndesc * ts, void *beforeRock),
		    void *arock);
extern int
  cmd_SetAfterProc(int (*aproc) (struct cmd_syndesc * ts, void *afterRock),
		   void *arock);
extern int cmd_CreateAlias(struct cmd_syndesc *as, char *aname);
extern int cmd_Seek(struct cmd_syndesc *as, int apos);
extern int cmd_AddParm(struct cmd_syndesc *as, char *aname, int atype,
		       afs_int32 aflags, char *ahelp);
extern int cmd_AddParmAtOffset(struct cmd_syndesc *as, int ref, char *name,
			       int atype, afs_int32 aflags, char *ahelp);
extern int cmd_AddParmAlias(struct cmd_syndesc *as, int pos, char *alias);
extern int cmd_Dispatch(int argc, char **argv);
extern int cmd_FreeArgv(char **argv);
extern int cmd_ParseLine(char *aline, char **argv, afs_int32 * an,
			 afs_int32 amaxn);
extern void cmd_DisablePositionalCommands(void);
extern void cmd_DisableAbbreviations(void);
extern void PrintSyntax(struct cmd_syndesc *as);
extern void PrintFlagHelp(struct cmd_syndesc *as);

extern int cmd_Parse(int argc, char **argv, struct cmd_syndesc **outsyntax);
extern void cmd_FreeOptions(struct cmd_syndesc **ts);
extern int cmd_OptionAsInt(struct cmd_syndesc *syn, int pos, int *value);
extern int cmd_OptionAsUint(struct cmd_syndesc *, int, unsigned int *);
extern int cmd_OptionAsString(struct cmd_syndesc *syn, int pos, char **value);
extern int cmd_OptionAsList(struct cmd_syndesc *syn, int pos, struct cmd_item **);
extern int cmd_OptionAsFlag(struct cmd_syndesc *syn, int pos, int *value);
extern int cmd_OptionPresent(struct cmd_syndesc *syn, int pos);

/* Config files */

struct cmd_config_binding {
    enum { cmd_config_string, cmd_config_list } type;
    char *name;
    struct cmd_config_binding *next;
    union {
	char *string;
	struct cmd_config_binding *list;
	void *generic;
    } u;
};

/* Raw config file access */
typedef struct cmd_config_binding cmd_config_binding;
typedef struct cmd_config_binding cmd_config_section;

extern int cmd_RawConfigParseFileMulti(const char *, cmd_config_section **);
extern int cmd_RawConfigParseFile(const char *, cmd_config_section **);
extern int cmd_RawConfigFileFree(cmd_config_section *s);
extern const char* cmd_RawConfigGetString(const cmd_config_section *,
					  const char *, ...);
extern int cmd_RawConfigGetBool(const cmd_config_section *, int, ...);
extern int cmd_RawConfigGetInt(const cmd_config_section *, int, ...);
extern const cmd_config_binding *cmd_RawConfigGetList
	(const cmd_config_section *, ...);

extern int cmd_OpenConfigFile(const char *file);
extern void cmd_SetCommandName(const char *command);
extern const cmd_config_section *cmd_RawFile(void);
extern const cmd_config_section *cmd_RawSection(void);

#endif /* __CMD_INCL__ */

/* End of prolog file ./cmd.p.h. */

#define CMD_EXCESSPARMS                          (3359744L)
#define CMD_INTERNALERROR                        (3359745L)
#define CMD_NOTLIST                              (3359746L)
#define CMD_TOOMANY                              (3359747L)
#define CMD_USAGE                                (3359748L)
#define CMD_UNKNOWNCMD                           (3359749L)
#define CMD_UNKNOWNSWITCH                        (3359750L)
#define CMD_AMBIG                                (3359751L)
#define CMD_TOOFEW                               (3359752L)
#define CMD_TOOBIG                               (3359753L)
#define CMD_MISSING                              (3359754L)
#define CMD_BADFORMAT                            (3359755L)
#define CMD_HELP                                 (3359756L)
extern void initialize_CMD_error_table(void);
#define ERROR_TABLE_BASE_CMD (3359744L)

/* for compatibility with older versions... */
#define init_CMD_err_tbl initialize_CMD_error_table
#define CMD_err_base ERROR_TABLE_BASE_CMD

/* for compatibility with other users... */
#define ERROR_TABLE_BASE_cmd (3359744L)
#define init_cmd_err_tbl initialize_CMD_error_table
#define initialize_cmd_error_table initialize_CMD_error_table
#define cmd_err_base ERROR_TABLE_BASE_cmd