ref: 9c784144093e204332660445eff074cdb88c6fb1
parent: 7c69c6d7f62c06ced83e85eba0f04deea14f73c8
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Nov 23 20:04:21 EST 2019
devlfd-posix: bring back lfdfd() for posix-factotum.c
--- a/kern/devlfd-posix.c
+++ b/kern/devlfd-posix.c
@@ -26,6 +26,12 @@
return c;
}
+int
+lfdfd(int fd)
+{
+ return newfd(lfdchan((void*)(uintptr)fd));
+}
+
static Chan*
lfdattach(char *x)
{