This file is indexed.

/usr/include/simgear/nasal/iolib.h is in libsimgear-dev 1:2018.1.1+dfsg-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
#ifndef _IOLIB_H
#define _IOLIB_H
#ifdef __cplusplus
extern "C" {
#endif

#include "nasal.h"

// Note use of 32 bit ints, should fix at some point to use
// platform-dependent fpos_t/size_t or just punt and use int64_t
// everywhere...

// The naContext is passed in for error reporting via
// naRuntimeError().
struct naIOType {
    void (*close)(naContext c, void* f);
    int  (*read) (naContext c, void* f, char* buf, unsigned int len);
    int  (*write)(naContext c, void* f, char* buf, unsigned int len);
    void (*seek) (naContext c, void* f, unsigned int off, int whence);
    int  (*tell) (naContext c, void* f);
    void (*flush) (naContext c, void* f);
    void (*destroy)(void* f);
};

struct naIOGhost {
    struct naIOType* type;
    void* handle; // descriptor, FILE*, HANDLE, etc...
};

extern naGhostType naIOGhostType;
extern struct naIOType naStdIOType;

#define IOGHOST(r) ((struct naIOGhost*)naGhost_ptr(r))
#define IS_IO(r) (IS_GHOST(r) && naGhost_type(r) == &naIOGhostType)
#define IS_STDIO(r) (IS_IO(r) && (IOGHOST(r)->type == &naStdIOType))

// Defined in iolib.c, there is no "library" header to put this in
naRef naIOGhost(naContext c, FILE* f);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // _IOLIB_H