summaryrefslogtreecommitdiff
path: root/src/io/fd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/fd.cpp')
-rw-r--r--src/io/fd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/io/fd.cpp b/src/io/fd.cpp
index 4c61a6f..c0b44e8 100644
--- a/src/io/fd.cpp
+++ b/src/io/fd.cpp
@@ -34,6 +34,10 @@ namespace io
{
return FD(::open(path.c_str(), flags, mode));
}
+ FD FD::openat(FD dirfd, ZString path, int flags, int mode)
+ {
+ return FD(::openat(dirfd.fd, path.c_str(), flags, mode));
+ }
FD FD::socket(int domain, int type, int protocol)
{
return FD(::socket(domain, type, protocol));