X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ensc_wrappers%2Fwrappers-clone.hc;fp=ensc_wrappers%2Fwrappers-clone.hc;h=eb36fc3f173f0c3a7b1f1d72f74eabc7d8e50db0;hb=c9cd9fb53dc2b759f35a0bca5175e0718b8edfee;hp=943514f01a439e305f2a9d9583ef561c1f546912;hpb=8e4a04536505de3e00a3a1e0982362ddff100a2a;p=util-vserver.git diff --git a/ensc_wrappers/wrappers-clone.hc b/ensc_wrappers/wrappers-clone.hc index 943514f..eb36fc3 100644 --- a/ensc_wrappers/wrappers-clone.hc +++ b/ensc_wrappers/wrappers-clone.hc @@ -20,15 +20,13 @@ # error wrappers_handler.hc can not be used in this way #endif +#include + inline static WRAPPER_DECL pid_t -Eclone(int (*fn)(void *), void *child_stack, int flags, void *arg) +Eclone(uint64_t flags, void *child_stack) { pid_t res; -#ifndef __dietlibc__ - res = clone(fn, child_stack, flags, arg); -#else - res = clone((void*(*)(void*))(fn), child_stack, flags, arg); -#endif + res = sys_clone(flags, child_stack); FatalErrnoError(res==-1, "clone()"); return res; }