Skip to contentSkip to conversation

a fork-like C-wrapper for clone(), DONE!

DISCUSSION Francesc Oller 1 participant 1 message Apr 26, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines · H.P.Anvin
Quoted 4 lines

glibc already contains such a wrapper; it is called __clone(). At least my system has "man clone" show the man page for it.

Actually, the man page is wrong, it's called clone() unless you define

a function with that name yourself (weak symbol.) My version of the man pages are a bit old.

-hpa

Unlike mine, neither glibc nor Linus clone.c wrappers are fork-like. That's why I reworked Linus clone example in the first place

Regards

Francesc Oller