This file is indexed.

/usr/include/bobcat/exec is in libbobcat-dev 4.08.02-2build1.

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
#ifndef INCLUDED_BOBCAT_EXEC_
#define INCLUDED_BOBCAT_EXEC_

#include <string>
#include <vector>

#include <bobcat/fork>

namespace FBB
{

namespace IUO
{
    struct CloseMode
    {
        enum StdMode
        {
            CLOSE_STD
        };
    };
}

class Exec: public Fork
{
    std::string d_cmd;
    int d_ret = -1;

    public:
        bool execute(std::string const &cmd);
        int ret() const;

    protected:
        static void noClose();
        int setRet(int retVal);

    private:
        std::vector<std::string> splitSource() const;

        void childProcess() override;
        void parentProcess() override;
};

inline void Exec::noClose()    // static
{}

inline int Exec::ret() const
{
    return d_ret;
}

inline int Exec::setRet(int retVal) 
{
    return d_ret = retVal;
}

inline void Exec::parentProcess()
{
    d_ret = waitForChild();
}

} // namespace FBB

#endif