Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 1998 11:49:39 -0600
From:      Richard Seaman <dick@tar.com>
To:        Jeremy Lea <reg@shale.csir.co.za>
Cc:        Alfred Perlstein <bright@hotjobs.com>, "Brian W. Buchanan" <brian@CSUA.Berkeley.EDU>, Joseph Lee <nugundam@best.com>, freebsd-current@FreeBSD.ORG
Subject:   Re: linking against libc_r
Message-ID:  <19981221114939.A5500@tar.com>
In-Reply-To: <19981221192734.E4060@shale.csir.co.za>; from Jeremy Lea on Mon, Dec 21, 1998 at 07:27:35PM %2B0200
References:  <Pine.BSF.4.05.9812210104430.479-100000@smarter.than.nu> <Pine.BSF.4.05.9812211024340.6331-100000@bright.fx.genx.net> <19981221093241.C546@tar.com> <19981221192734.E4060@shale.csir.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 21, 1998 at 07:27:35PM +0200, Jeremy Lea wrote:
> 
> Wine seems to want clone(), from a quick read of the man page.  Does the
> native LinuxThreads stuff implement this as a FreeBSD syscall?

The FreeBSD "port" of Linux threads does not use nor implement a clone
syscall.  It uses rfork instead within pthread_create to simulate
the clone call.  If Wine calls "clone" directly, rather than via
the phread_create call, it would be easy enough to implement a
FreeBSD call, either in libc or as a syscall, that mimics clone.

Actually, there are already two "clone" calls within Linux Threads
right now.  There is a wrapper "clone" call that wraps the clone
syscall (see clone.S in the linux threads source).


-- 
Richard Seamman, Jr.          email: dick@tar.com
5182 N. Maple Lane            phone: 414-367-5450
Chenequa WI 53058             fax:   414-367-5852

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981221114939.A5500>