libclues
Linux C++ Tracing Library
Loading...
Searching...
No Matches
io.cxx
1
// clues
2
#include <clues/syscalls/io.hxx>
3
4
namespace
clues
{
5
6
void
PipeSystemCall::updateFDTracking
(
const
Tracee
&proc) {
7
if
(ends.haveEnds()) {
8
FDInfo
read_info{
FDInfo::Type::PIPE
, ends.readEnd()};
9
FDInfo
write_info{
FDInfo::Type::PIPE
, ends.writeEnd()};
10
11
// model the read and write ends via appropriate OpenMode values
12
read_info.mode = cosmos::OpenMode::READ_ONLY;
13
write_info.mode = cosmos::OpenMode::WRITE_ONLY;
14
15
trackFD(proc, std::move(read_info));
16
trackFD(proc, std::move(write_info));
17
}
18
}
19
20
}
// end ns
clues::Tracee
Base class for traced processes.
Definition
Tracee.hxx:39
clues
Definition
AutoAttachedTracee.cxx:12
clues::FDInfo
Contextual information about a file descriptor in a Tracee.
Definition
types.hxx:75
clues::FDInfo::Type::PIPE
@ PIPE
created by pipe()
Definition
types.hxx:94
clues::PipeSystemCall::updateFDTracking
void updateFDTracking(const Tracee &proc) override
Update file descriptor tracking.
Definition
io.cxx:6
src
syscalls
io.cxx
Generated by
1.13.2