libcosmos
Linux C++ System Programming Library
Loading...
Searching...
No Matches
DirFD.hxx
1#pragma once
2
3// cosmos
4#include <cosmos/fs/types.hxx>
5#include <cosmos/fs/FileDescriptor.hxx>
6
7namespace cosmos {
8
10
16class DirFD :
17 public FileDescriptor {
18public: // functions
19
20 explicit constexpr DirFD(FileNum fd = FileNum::INVALID) :
21 FileDescriptor{fd} {}
22};
23
25inline constexpr DirFD AT_CWD{FileNum::AT_CWD};
26
27} // end ns
A specialized FileDescriptor for directory objects.
Definition DirFD.hxx:17
Thin Wrapper around OS file descriptors.
FileNum
Primitive file descriptor.
Definition types.hxx:32