This file is indexed.

/usr/include/tdb_limits.h is in libtraildb-dev 0.6+dfsg1-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
#ifndef __TDB_LIMITS_H__
#define __TDB_LIMITS_H__

#include <stdint.h>

/* these are kept in stack, so they shouldn't be overly large */
#define TDB_MAX_PATH_SIZE   2048
#define TDB_MAX_FIELDNAME_LENGTH 512

/* MAX_NUM_TRAILS * 16 must fit in off_t (long) type */
#define TDB_MAX_NUM_TRAILS  ((1LLU << 59) - 1)

/*
we need bit-level offsets to trails: At worst each item takes 64 bits,
so the theoretical max is 2^64 / 2^6 = 2^58. To make things a bit safer,
we set the max to 2^50.
*/
#define TDB_MAX_TRAIL_LENGTH ((1LLU << 50) - 1)

/* re: fields and values below, see tdb_types.h */

/* re: -2, one field is always the special 'time' field */
#define TDB_MAX_NUM_FIELDS ((1LLU << 14) - 2)

/* re: -2, one value is always the special NULL value */
#define TDB_MAX_NUM_VALUES ((1LLU << 40) - 2)

/*
timestamps have less future proofing than values, so TBD_MAX_TIMEDELTA can
be higher than TDB_MAX_NUM_VALUES, see tdb_types.h for details
*/
#define TDB_MAX_TIMEDELTA ((1LLU << 47) - 1)

/* 32-bit narrow items */
#define TDB_FIELD32_MAX 127
#define TDB_VAL32_MAX   ((1LLU << 24) - 1)

/* MAX_LEXICON_SIZE must fit in off_t type */
#define TDB_MAX_LEXICON_SIZE (1LLU << 59)

/* TDB_MAX_VALUE_SIZE < MAX_LEXICON_SIZE - 16 */
#define TDB_MAX_VALUE_SIZE  (1LLU << 58)

/* Support a character set that allows easy urlencoding.
   These characters are used in filenames, so better to be
   extra paranoid. */
#define TDB_FIELDNAME_CHARS "_-%"\
                            "abcdefghijklmnopqrstuvwxyz"\
                            "ABCDEFGHIJKLMNOPQRSTUVWXYZ"\
                            "0123456789"

#endif /* TDB_LIMITS */