From owner-freebsd-hackers Wed Jun 4 14:23:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA13530 for hackers-outgoing; Wed, 4 Jun 1997 14:23:03 -0700 (PDT) Received: from caipfs.rutgers.edu (root@caipfs.rutgers.edu [128.6.155.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA13525 for ; Wed, 4 Jun 1997 14:22:57 -0700 (PDT) Received: from jenolan.caipgeneral (jenolan.rutgers.edu [128.6.111.5]) by caipfs.rutgers.edu (8.8.5/8.8.5) with SMTP id RAA13233; Wed, 4 Jun 1997 17:22:39 -0400 (EDT) Received: by jenolan.caipgeneral (SMI-8.6/SMI-SVR4) id RAA00290; Wed, 4 Jun 1997 17:20:36 -0400 Date: Wed, 4 Jun 1997 17:20:36 -0400 Message-Id: <199706042120.RAA00290@jenolan.caipgeneral> From: "David S. Miller" To: token@wicx50.informatik.uni-wuerzburg.de CC: borjam@we.lc.ehu.es, freebsd-hackers@FreeBSD.ORG In-reply-to: <9706041703.AA09686@wicx01.informatik.uni-wuerzburg.de> (message from Matthias Buelow on Wed, 4 Jun 1997 19:03:52 +0100 (MET DST)) Subject: Re: Linux clone() system call Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk From: Matthias Buelow Date: Wed, 4 Jun 1997 19:03:52 +0100 (MET DST) clone(2) is a Linux-unique system call (they formed it after a Plan9 syscall afaik) and not portable. It looks more or less like a kludgy hack interface to fork/vfork especially when you consider the following :-) : That man page is seriously out of date. It is how user and kernel based threads are created, any piece of the thread context can be specifically chosen to be shared fully or not shared at all, the fact that fork() is implemented in terms of clone() shows how it pretty much is a clean design. The CLONE_ACTUALLY_WORKS_OK was relevant over 2 years ago to give you an idea of how out of date that man page is. ---------------------------------------------//// Yow! 11.26 MB/s remote host TCP bandwidth & //// 199 usec remote TCP latency over 100Mb/s //// ethernet. Beat that! //// -----------------------------------------////__________ o David S. Miller, davem@caip.rutgers.edu /_____________/ / // /_/ ><