projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Edup(): added
[util-vserver.git]
/
util-vserver
/
ensc_wrappers
/
wrappers-unistd.hc
diff --git
a/util-vserver/ensc_wrappers/wrappers-unistd.hc
b/util-vserver/ensc_wrappers/wrappers-unistd.hc
index
c1e2b9f
..
908fee9
100644
(file)
--- a/
util-vserver/ensc_wrappers/wrappers-unistd.hc
+++ b/
util-vserver/ensc_wrappers/wrappers-unistd.hc
@@
-161,6
+161,15
@@
Edup2(int oldfd, int newfd)
return res;
}
+inline static WRAPPER_DECL int
+Edup(int fd)
+{
+ register int res = dup(fd);
+ FatalErrnoError(res==-1, "dup()");
+
+ return res;
+}
+
inline static WRAPPER_DECL pid_t
Esetsid()
{