This file is indexed.

/usr/include/distorm64/textdefs.h is in libdistorm64-dev 1.7.30-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
/*
textdefs.h

Copyright (C) 2003-2008 Gil Dabah, http://ragestorm.net/distorm/
This library is licensed under the BSD license. See the file COPYING.
*/


#ifndef TEXTDEFS_H
#define TEXTDEFS_H

#include "../config.h"

#include "wstring.h"

#define PLUS_DISP_CHR '+'
#define MINUS_DISP_CHR '-'
/* CHR0 is used for FPU, ST(i) register */
#define OPEN_CHR0 '('
#define CLOSE_CHR0 ')'
#define OPEN_CHR '['
#define CLOSE_CHR ']'
extern int8_t SEP_STR[3];
#define SEP_CHR ','
#define SP_CHR ' '
#define SEG_OFF_CHR ':'

/*
Naming Convention:

* get - returns a pointer to a string.
* str - concatenates to string.

* hex - means the function is used for hex dump (number is padded to required size) - Little Endian output.
* code - means the function is used for disassembled instruction - Big Endian output.
* off - means the function is used for 64bit offset - Big Endian output.

* sp - space character in front of the string.
* h - '0x' in front of the string.

* b - byte
* w - word
* dw - double word
* qw - quad word

* all numbers are in HEX.
*/

extern int8_t TextBTable[256][4];

_INLINE_ int8_t* get_hex_b(unsigned int x)
{
	return &TextBTable[x & 255][1]; /* Skip space character. */
}

void _FASTCALL_ str_hex_b(_WString* s, unsigned int x);
void _FASTCALL_ str_code_hb(_WString* s, unsigned int x);

void _FASTCALL_ str_hex_sp_b(_WString* s, unsigned int x);
void _FASTCALL_ str_code_sp_hb(_WString* s, unsigned int x);

void _FASTCALL_ str_hex_sp_w(_WString* s, unsigned int x);
void _FASTCALL_ str_code_hw(_WString* s, unsigned int x);

void _FASTCALL_ str_hex_sp_dw(_WString* s, uint32_t x);
void _FASTCALL_ str_code_hdw(_WString* s, uint32_t x);

void _FASTCALL_ str_hex_sp_qw(_WString* s, uint8_t src[8]);
void _FASTCALL_ str_code_hqw(_WString* s, uint8_t src[8]);

#ifdef SUPPORT_64BIT_OFFSET
void _FASTCALL_ str_off64(_WString* s, OFFSET_INTEGER x);
#endif

#endif /* TEXTDEFS_H */