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
6namespace cosmos {
7
9
35class COSMOS_API PidFD :
36 public FileDescriptor {
37
38 friend struct CloneArgs;
39public: // functions
40
41 explicit PidFD(FileNum fd = FileNum::INVALID) :
43 {}
44};
45
46} // end ns
Thin Wrapper around OS file descriptors.
A specialized FileDescriptor for pidfds.
Definition PidFD.hxx:36
FileNum
Primitive file descriptor.
Definition types.hxx:32
Argument struct for proc::clone().
Definition clone.hxx:61