This file is indexed.

/usr/include/wvstreams/wvfile.h is in libwvstreams-dev 4.6.1-12~deb9u1.

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
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
 *
 * A simple class to access filesystem files using WvStreams.
 */
#ifndef __WVFILE_H
#define __WVFILE_H

#include "wvfdstream.h"
#include <fcntl.h>

#ifdef _WIN32
#define O_NONBLOCK 0
#define O_LARGEFILE 0
#define fcntl(a,b,c)
#endif

/**
 * WvFile implements a stream connected to a file or Unix device.  We
 * include no support for operations like seek().  Since files are not
 * really streams, you probably do not need WvStream support for seekable
 * files; just use standard C I/O functions in that case.
 *
 * WvFile is primarily useful for Unix device files, which have defined
 * select() behaviour for example.
 */
class WvFile : public WvFDStream
{
public:
    /** Create an empty WvFile that you'll open later with open() */
    WvFile();

    /** Create a WvFile from an existing fd.  Not available in win32. */
    WvFile(int rwfd);

    /** Create a WvFile given options like ::open() */
    WvFile(WvStringParm filename, int mode, int create_mode = 0666);
    bool open(WvStringParm filename, int mode, int create_mode = 0666);
    bool open(int _rwfd);
    
    bool readable, writable;

    virtual void pre_select(SelectInfo &si);
    virtual bool post_select(SelectInfo &si);

public:
    const char *wstype() const { return "WvFile"; }
};

#endif // __WVFILE_H