Changeset 2747 for trunk/ensc_wrappers
- Timestamp:
- 07/16/08 00:14:13 (4 months ago)
- Files:
-
- trunk/ensc_wrappers/wrappers-clone.hc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ensc_wrappers/wrappers-clone.hc
r814 r2747 21 21 #endif 22 22 23 #include <lib_internal/sys_clone.h> 24 23 25 inline static WRAPPER_DECL pid_t 24 Eclone( int (*fn)(void *), void *child_stack, int flags, void *arg)26 Eclone(uint64_t flags, void *child_stack) 25 27 { 26 28 pid_t res; 27 #ifndef __dietlibc__ 28 res = clone(fn, child_stack, flags, arg); 29 #else 30 res = clone((void*(*)(void*))(fn), child_stack, flags, arg); 31 #endif 29 res = sys_clone(flags, child_stack); 32 30 FatalErrnoError(res==-1, "clone()"); 33 31 return res;
