This file is indexed.

/usr/share/vala/vapi/r_search.vapi is in radare2-vala 0.9.6-4.

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
/* radare - LGPL - Copyright 2009-2011 pancake<nopcode.org> */

[CCode (cheader_filename="r_types_base.h,r_list.h,r_search.h", cname="RSearch", free_function="r_search_free", unref_function="r_search_free", cprefix="r_search_")]
public class Radare.RSearch {
	[CCode (cname="RSearchCallback", has_target="false")]
	public delegate int Callback(Keyword s, void *user, uint64 addr);

	public RSearch (Mode mode);
	public bool set_mode (Mode mode);
//	public bool set_string_limits (uint32 min, uint32 max);
	public bool begin();
	public void reset(int mode);
// XXX must return bool?? or not? 3 state? or two?
	public int update(ref uint64 from, uint8 *buf, long len);
	public int update_i(uint64 from, uint8 *buf, long len);
	public RList<RSearch.Hit> find(uint64 addr, uint8 *buf, int len);

	public bool kw_add(Keyword kw);
	public void kw_reset();

	public void set_callback(Callback cb, void *user);
	//public int pattern_update(int size); // this is uint? long?
	//public int set_pattern_size(int size); // this is uint? long?
	public int strings_update(uint64 addr, uint8 *buf, int len);

	[CCode (cprefix="R_SEARCH_", cname="int")]
	public enum Mode {
		KEYWORD,
		REGEXP,
		PATTERN,
		STRING,
		XREFS,
		AES
	}
	public RList<Keyword> kws;

	[Compact]
	[CCode (cname="RSearchKeyword", free_function="free", cprefix="r_search_keyword_")]
	public class Keyword {
		public char keyword[128]; // FIXME proper static strings w/o hardcoded size
		public char binmask[128]; // FIXME proper static strings w/o hardcoded size
		public uint8 bin_keyword[128]; // FIXME proper static buffers w/o hardcoded size
		public uint8 bin_binmask[128]; // FIXME proper static buffers w/o hardcoded size
		public int keyword_length;
		public int binmask_length;
		//public int idx;
		public int count;
		public int type;

		public Keyword.str (string str, string bmask, string data, bool icase = false);
		//public Keyword.hex (string str, string bmask, string data);
		public Keyword (uint8 *s, int sl, uint8 *b, int bl, string data);
	}

	[Compact]
	[CCode (cname="RSearchHit", free_function="free", cprefix="r_search_hit_")]
	public class Hit {
		public /*unowned*/ Keyword kw;
		uint64 addr;
	}
}