/usr/include/bobcat/pipe is in libbobcat-dev 4.04.00-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 52 53 54 | #ifndef INCLUDED_BOBCAT_PIPE_
#define INCLUDED_BOBCAT_PIPE_
#include <cstddef>
namespace FBB
{
class Pipe
{
protected:
enum RW
{
READ,
WRITE
};
int d_fd[2];
public:
Pipe();
explicit Pipe(int const *fd);
// ~Pipe(); removed from the interface as it's implementation was
// empty and this class is not a Base class having virtual
// members
void verify() const; // SF, now empty
int readFd() const; // .f
int writeFd() const; // .f
void readFrom(int filedescriptor);
// experimental:
void readFrom(int const *filedescriptor, size_t n);
int readOnly();
void writtenBy(int filedescriptor);
void writtenBy(int const *filedescriptor, size_t n = 2);
int writeOnly();
};
inline int Pipe::readFd() const
{
return d_fd[READ];
}
inline int Pipe::writeFd() const
{
return d_fd[WRITE];
}
} // FBB
#endif
|