This file is indexed.

/usr/include/bobcat/localsocketbase is in libbobcat-dev 2.20.01-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
#ifndef INCLUDED_BOBCAT_LOCALSOCKETBASE_
#define INCLUDED_BOBCAT_LOCALSOCKETBASE_

#include <sys/un.h>
#include <string>
#include <sys/socket.h>

#include <bobcat/errno>

namespace FBB
{

class LocalSocketBase
{
    size_t              d_length;
    int                 d_socket;
    struct sockaddr_un  d_address;

    protected:
        LocalSocketBase();                                      // 1
        explicit LocalSocketBase(std::string const &name);

        void open(std::string const &name);
        int socket() const;
        size_t size() const;
        sockaddr const *sockaddrPtr() const;
};

inline LocalSocketBase::LocalSocketBase(std::string const &name)
{
    open(name);
}

inline int LocalSocketBase::socket() const
{
    return d_socket;
}

inline size_t LocalSocketBase::size() const
{
    return d_length;
}

inline sockaddr const *LocalSocketBase::sockaddrPtr() const
{
    return reinterpret_cast<sockaddr const *>(&d_address);
}

} // FBB

#endif