This file is indexed.

/usr/include/sc/util/options/GetLongOpt.h is in libsc-dev 2.3.1-16build1.

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
/* $Id: GetLongOpt.h,v 2.2 2003/02/06 01:02:13 cljanss Exp $ */
/* S Manoharan. Advanced Computer Research Institute. Lyon. France */

#ifdef __GNUC__
#pragma interface
#endif

#ifndef _GetLongOpt_h_
#define _GetLongOpt_h_

#include <iostream>
#include <string.h>

namespace sc {

class GetLongOpt {
public:
   enum OptType { 
      NoValue, OptionalValue, MandatoryValue
   };
private:
   struct Cell {
      const char *option;	// option name
      OptType type;		// option type
      const char *description;	// a description of option
      const char *value;	// value of option (string)
      Cell *next;		// pointer to the next cell

      Cell() { option = description = value = 0; next = 0; }
   };
private:
  Cell *table;				// option table
  const char *ustring;			// usage message
  char *pname;				// program basename
  char optmarker;			// option marker

  int enroll_done;			// finished enrolling
  Cell *last;				// last entry in option table 

private:
  char *basename(char * const p) const;
  int setcell(Cell *c, const char *valtoken, const char *nexttoken, const char *p);
public:
   GetLongOpt(const char optmark = '-');
   ~GetLongOpt();

   int parse(int argc, char * const *argv);
   int parse(char * const str, char * const p);

   int enroll(const char * const opt, const OptType t,
      const char * const desc, const char * const val);
   const char *retrieve(const char * const opt) const;

   void usage(std::ostream &outfile = std::cout) const;
   void usage(const char *str)		{ ustring = str; }
};

}

#endif /* _GetLongOpt_h_ */