This file is indexed.

/usr/include/wvstreams/wvpty.h is in libwvstreams-dev 4.6.1-5.

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
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2004 Net Integration Technologies, Inc.
 * 
 * WvStreams implementation of ptys under Linux.
 *
 * For more information on programming ptys, see chapter 19 of
 * Stevens' "Advanced Programming in the UNIX Environment"
 */
#ifndef __WVPTY_H
#define __WVPTY_H

#include "wvfdstream.h"
#include "wvtr1.h"

class WvPty: public WvFDStream
{
private:
    WvString _master, _slave;
    pid_t _pid;
    int _exit_status;

    static bool open_pty(WvString &master, int &master_fd,
			 WvString &slave, int &slave_fd);

    void monitor_child(bool wait);
        
public:
    typedef wv::function<bool(WvPty&)> Callback;

    Callback pre_exec_cb;
    Callback post_exec_cb; // This can only be called if exec() fails

    WvPty(const char *program, const char * const *argv,
	  Callback _pre_exec_cb = Callback(),
	  Callback _post_exec_cb = Callback());

    void kill(int signum);
    bool child_exited();
    bool child_killed();
    int finish();
    int exit_status();
        
    const char *master() const
	{ return _master; }
    const char *slave() const
	{ return _slave; }
    pid_t pid() const
	{ return _pid; }
            
    const char *wstype() const { return "WvPty"; }
};

#endif // __WVPTY_H