This file is indexed.

/usr/include/fakepq.h is in tcl8.6-tdbc-postgres 1.0.6-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
/*
 * fakepq.h --
 *
 *	Minimal replacement for 'pq-fe.h' in the PostgreSQL client
 *	without having a PostgreSQL installation on the build system.
 *	This file comprises only data type, constant and function definitions.
 *
 * The programmers of this file believe that it contains material not
 * subject to copyright under the doctrines of scenes a faire and
 * of merger of idea and expression. Accordingly, this file is in the
 * public domain.
 *
 *-----------------------------------------------------------------------------
 */

#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif

/* we typedef TDBC_INTPTR_T */

#ifdef HAVE_STDINT_H
typedef intptr_t TDBC_INTPTR_T;
#else
typedef int TDBC_INTPTR_T;
#endif

#ifndef FAKEPQ_H_INCLUDED
#define FAKEPQ_H_INCLUDED

#ifndef MODULE_SCOPE
#define MODULE_SCOPE extern
#endif

MODULE_SCOPE Tcl_LoadHandle PostgresqlInitStubs(Tcl_Interp*);

typedef enum {
    CONNECTION_OK=0,
} ConnStatusType;
typedef enum {
    PGRES_EMPTY_QUERY=0,
    PGRES_BAD_RESPONSE=5,
    PGRES_NONFATAL_ERROR=6,
    PGRES_FATAL_ERROR=7,
} ExecStatusType;

#ifdef HAVE_STDINT_H
typedef TDBC_INTPTR_T Oid;
#else
typedef unsigned int Oid;
#endif
typedef struct pg_conn PGconn;
typedef struct pg_result PGresult;
typedef void (*PQnoticeProcessor)(void*, const PGresult*);

#define PG_DIAG_SQLSTATE 'C'
#define PG_DIAG_MESSAGE_PRIMARY 'M'

#include "pqStubs.h"

MODULE_SCOPE const pqStubDefs* pqStubs;

#endif