libcosmos
Linux C++ System Programming Library
Loading...
Searching...
No Matches
PidFD.hxx
1
#pragma once
2
3
// cosmos
4
#include <cosmos/fs/FileDescriptor.hxx>
5
6
namespace
cosmos {
7
9
35
class
COSMOS_API
PidFD
:
36
public
FileDescriptor
{
37
38
friend
struct
CloneArgs
;
39
public
:
// functions
40
41
explicit
PidFD
(
FileNum
fd = FileNum::INVALID) :
42
FileDescriptor
{fd}
43
{}
44
};
45
46
}
// end ns
cosmos::FileDescriptor
Thin Wrapper around OS file descriptors.
Definition
FileDescriptor.hxx:35
cosmos::PidFD
A specialized FileDescriptor for pidfds.
Definition
PidFD.hxx:36
cosmos::FileNum
FileNum
Primitive file descriptor.
Definition
types.hxx:32
cosmos::CloneArgs
Argument struct for proc::clone().
Definition
clone.hxx:61
include
proc
PidFD.hxx
Generated by
1.12.0