posix/flock: add the lval-ref fd constructor

This commit is contained in:
Danny Robson 2022-09-14 14:18:06 +10:00
parent cb802824df
commit 1c0ff49bb0

View File

@ -16,6 +16,12 @@ using flock_ = cruft::posix::flock;
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
flock_::flock (cruft::posix::fd const &_fd, int const _operation)
: flock (_fd.dup (), _operation)
{ ; }
//-----------------------------------------------------------------------------
flock_::flock ( flock_::flock (
cruft::posix::fd &&_fd, cruft::posix::fd &&_fd,
int operation int operation