From owner-freebsd-hackers Sun Dec 22 5:18:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E383837B401 for ; Sun, 22 Dec 2002 05:18:56 -0800 (PST) Received: from bran.mc.mpls.visi.com (bran.mc.mpls.visi.com [208.42.156.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7873243ED8 for ; Sun, 22 Dec 2002 05:18:56 -0800 (PST) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by bran.mc.mpls.visi.com (Postfix) with ESMTP id 84CE04B0C for ; Sun, 22 Dec 2002 07:18:55 -0600 (CST) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6/8.11.6) id gBMDIsa86956 for freebsd-hackers@freebsd.org; Sun, 22 Dec 2002 07:18:54 -0600 (CST) (envelope-from hawkeyd) Date: Sun, 22 Dec 2002 07:18:54 -0600 From: D J Hawkey Jr To: freebsd-hackers@freebsd.org Subject: Multi-threaded or async Mozilla (NSPR, really) Message-ID: <20021222071854.A86914@sheol.localdomain> Reply-To: hawkeyd@visi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all. If this isn't the right forum, please excuse me, and direct me to the correct group. Has anyone managed to hack a recent Mozilla release (say, 1.0 or later) to do async/threaded DNS lookups? Since gethostbyname() and related functions are in libc_r, I'm assuming it's doable. I've studied the configure scripts and tried a few hacks to them, tried the patch on Buzilla (http://bugzilla.mozilla.org/show_bug.cgi?id=70213), and a few other things, to no avail. It appears to be a NSPR thang, and threading is supported on AIX and OSF. The easy hacks, setting _PR_HAVE_THREADSAFE_GETHOST and _PR_HAVE_GETHOST_R, as those systems do, don't seem to have any effect. Setting up the use of libc_r.h (after changing the appropriate function names in it) creates compile problems that lead me to believe that's the wrong approach. Has anyone pulled this off? I'm d*mn tired of waiting on a DNS lookup of toolbar.aol.com when at www.cnn.com. My local DNS server responds as I would expect with nslookup, so it isn't a local bind thang. I can't imagine what Moz is doing within it's DNS code, even with the serialized DNS lookups. If nslookup replies within fractions of a second, why doesn't Moz?? All-too-common caveat: I'm not subscribed, so please CC me in replies to the group (or visa-versa). Thanks, Dave -- ______________________ ______________________ \__________________ \ D. J. HAWKEY JR. / __________________/ \________________/\ hawkeyd@visi.com /\________________/ http://www.visi.com/~hawkeyd/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 7:47:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3393537B401 for ; Sun, 22 Dec 2002 07:47:36 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2D4E43ED8 for ; Sun, 22 Dec 2002 07:47:34 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gBMFlR9Y008615 for ; Sun, 22 Dec 2002 15:47:27 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gBMFlMHs008614 for freebsd-hackers@FreeBSD.ORG; Sun, 22 Dec 2002 15:47:22 GMT Date: Sun, 22 Dec 2002 15:47:22 +0000 From: Matthew Seaman To: freebsd-hackers@FreeBSD.ORG Subject: Re: Multi-threaded or async Mozilla (NSPR, really) Message-ID: <20021222154722.GA8522@happy-idiot-talk.infracaninophi> Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: <20021222071854.A86914@sheol.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021222071854.A86914@sheol.localdomain> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.43 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Dec 22, 2002 at 07:18:54AM -0600, D J Hawkey Jr wrote: > I can't imagine what Moz is doing within it's DNS code, even with the > serialized DNS lookups. If nslookup replies within fractions of a second, > why doesn't Moz?? Take a look at look at the getaddrinfo(3) man page and then try doing a look up of the AAAA or A6 records for the troublesome locations. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 9:58:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7539B37B401 for ; Sun, 22 Dec 2002 09:58:33 -0800 (PST) Received: from mail.dada.it (mail4.dada.it [195.110.100.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 0499543ED8 for ; Sun, 22 Dec 2002 09:58:27 -0800 (PST) (envelope-from ale@unixmania.net) Received: (qmail 26731 invoked from network); 22 Dec 2002 17:58:11 -0000 Received: from unknown (HELO libero.sunshine.ale) (195.110.114.252) by mail.dada.it with SMTP; 22 Dec 2002 17:58:11 -0000 Received: by libero.sunshine.ale (Postfix, from userid 1001) id A0F585F45; Sun, 22 Dec 2002 18:58:14 +0100 (CET) Date: Sun, 22 Dec 2002 18:58:14 +0100 From: Alessandro de Manzano To: Garance A Drosihn Cc: Sean Hamilton , hackers@FreeBSD.ORG Subject: Re: Bootable FreeBSD CD Message-ID: <20021222185814.A80322@libero.sunshine.ale> Reply-To: Alessandro de Manzano References: <000601c2a89e$d6a2ae40$18d6e8d8@slugabed.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from drosih@rpi.edu on Fri, Dec 20, 2002 at 10:42:02PM -0500 X-Operating-System: FreeBSD 4.7-STABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Dec 20, 2002 at 10:42:02PM -0500, Garance A Drosihn wrote: > You might want to check out > http://www.sourceforge.net/projects/freebsdtogo/ maybe you could also be interested in FreeSBIE : http://www.freesbie.org It's a quite interesting project. -- bye! Ale To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 10:13:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58D8E37B401 for ; Sun, 22 Dec 2002 10:13:26 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 8F57143EE6 for ; Sun, 22 Dec 2002 10:13:25 -0800 (PST) (envelope-from szorcc@gmx.net) Received: (qmail 16472 invoked by uid 0); 22 Dec 2002 18:13:21 -0000 Received: from pd9e03c4b.dip.t-dialin.net (HELO jla-015) (217.224.60.75) by mail.gmx.net (mp003-rz3) with SMTP; 22 Dec 2002 18:13:21 -0000 From: Szorcc To: Date: Sun, 22 Dec 2002 18:58:39 +0100 X-Mailer: Vivian Mail [327.0209010] Subject: root on InterJet II Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <20021222181325.8F57143EE6@mx1.FreeBSD.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi everybody, is there anybody out there who can tell me how can I get root= access on a Whistle InterJet II? Thx. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 10:15: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D1C237B401 for ; Sun, 22 Dec 2002 10:15:04 -0800 (PST) Received: from mta6.srv.hcvlny.cv.net (mta6.srv.hcvlny.cv.net [167.206.5.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FA9543EE6 for ; Sun, 22 Dec 2002 10:15:03 -0800 (PST) (envelope-from agapon@excite.com) Received: from asv9.srv.hcvlny.cv.net (asv9.srv.hcvlny.cv.net [167.206.5.30]) by mta6.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.05 (built Nov 6 2002)) with ESMTP id <0H7J005159CZ52@mta6.srv.hcvlny.cv.net> for freebsd-hackers@freebsd.org; Sun, 22 Dec 2002 13:14:59 -0500 (EST) Received: from mta10.srv.hcvlny.cv.net (mta10.srv.hcvlny.cv.net [167.206.5.45]) by asv9.srv.hcvlny.cv.net (8.12.6/8.11.6) with ESMTP id gBMIEsr1021733 for ; Sun, 22 Dec 2002 13:14:54 -0500 (EST) Received: from edge.foundation.invalid (ool-4352ef3f.dyn.optonline.net [67.82.239.63]) by mta10.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.05 (built Nov 6 2002)) with ESMTP id <0H7J007QR9CT05@mta10.srv.hcvlny.cv.net> for freebsd-hackers@freebsd.org; Sun, 22 Dec 2002 13:14:54 -0500 (EST) Received: from localhost (localhost.foundation.invalid [127.0.0.1]) by edge.foundation.invalid (8.12.6/8.12.3) with ESMTP id gBMIErlk006776; Sun, 22 Dec 2002 13:14:53 -0500 (EST envelope-from agapon@excite.com) Date: Sun, 22 Dec 2002 13:14:53 -0500 (EST) From: Andriy Gapon Subject: Re: Multi-threaded or async Mozilla (NSPR, really) X-X-Sender: avg@edge.foundation.invalid To: hawkeyd@visi.com Cc: freebsd-hackers@freebsd.org Message-id: <20021222131200.J6771-100000@edge.foundation.invalid> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG as a matter of fact gethost*() family of calls is not thread-safe in FreeBSD. You can search FreeBSD PRs and mozilla's bugzilla for "mozilla DNS" to see previous discussions and efforts. -- Andriy Gapon * "The worst part of communication is the illusion that it has actually occurred". M. Jenkins. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 10:33:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 484CC37B401 for ; Sun, 22 Dec 2002 10:33:26 -0800 (PST) Received: from nebula.wanadoo.fr (ca-sqy-14-72.abo.wanadoo.fr [80.8.67.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3DF443EDE for ; Sun, 22 Dec 2002 10:33:23 -0800 (PST) (envelope-from dak@wanadoo.fr) Received: from nebula.wanadoo.fr (localhost [127.0.0.1]) by nebula.wanadoo.fr (8.12.6/8.12.6) with ESMTP id gBMIY2BO080951 for ; Sun, 22 Dec 2002 19:34:02 +0100 (CET) (envelope-from dak@nebula.wanadoo.fr) Received: (from dak@localhost) by nebula.wanadoo.fr (8.12.6/8.12.6/Submit) id gBMIY0RS080945 for hackers@freebsd.org; Sun, 22 Dec 2002 19:34:00 +0100 (CET) Date: Sun, 22 Dec 2002 19:34:00 +0100 From: Aurelien Nephtali To: hackers@freebsd.org Subject: Accessing trap frame from userland? Message-ID: <20021222183400.GA77934@nebula.wanadoo.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I'm making a little debugger using ptrace(). The soft is trivial, it just fork() and runs the traced process via execve(). To break into the traced process, I use i386_set_watch()+ptrace() and choosed to break on execution. But it's here that I'm stucked: it breaks forever on the same instruction. I've read some docs and saw that I have to use the 'Resume flag' from the EFLAGS register. But, according to the Intel IA-32 documentation, this flag can only be set/unset by kernel code and the only way for a debugger to modify it is to modify the stack image of the EFLAGS register. But, there's nothing in the stack so I think (and it was confirmed by a friend) that the image is stored in a 'kernel-land stack'. So, my question is simple: how can I set the 'Resume flag' from an userland soft (without having to be root) ? Hope I was clear enough :) Thanks. -- Aurelien --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+BgWYDNsbHbt8ok8RAnCLAJsGz9sLIxOyrT2FXS/7lwol4ZI74gCeITOZ Kt7X0cwcZVVs84rokMnaK1E= =HQ/M -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 10:36:24 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8CD237B401 for ; Sun, 22 Dec 2002 10:36:22 -0800 (PST) Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09D5D43EDC for ; Sun, 22 Dec 2002 10:36:22 -0800 (PST) (envelope-from bicknell@ussenterprise.ufp.org) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id gBMIaLM99393 for freebsd-hackers@FreeBSD.ORG; Sun, 22 Dec 2002 13:36:21 -0500 (EST) (envelope-from bicknell) Date: Sun, 22 Dec 2002 13:36:21 -0500 From: Leo Bicknell To: freebsd-hackers@FreeBSD.ORG Subject: Re: Perl issue on freebsd 4.x? Message-ID: <20021222183621.GA99282@ussenterprise.ufp.org> Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: <20021219022152.GA6708@ussenterprise.ufp.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <20021219022152.GA6708@ussenterprise.ufp.org> Organization: United Federation of Planets Reply-By: Sun Dec 29 13:31:10 EST 2002 X-Message-Flag: Put no trust in cryptic comments. X-PGP-Key: http://www.ufp.org/~bicknell/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I opened a bug report with the perl people, and I got back the following response from Slaven Rezic: ] This does not seem to be a problem in 5.8.0's Sys::Syslog. According ] to the documentation, by default the types tcp, udp, unix, stream, =20 ] console are tried in order. It also seems to work on my FreeBSD 4.7 =20 ] system (syslogd is started with -s flag) without specifying ] setlogsock(). Perl 5.8 does not seem to be a part of 4.x, is it in 5.0 or -CURRENT? --=20 Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE+BgYlNh6mMG5yMTYRAiG1AJ0bjhSldLgfaDzZFKtc8rZqnArZXQCfdYYU RY831/7M1LWzhWYOo/Gd+bs= =PyHX -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 10:51:57 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4CAE37B401 for ; Sun, 22 Dec 2002 10:51:56 -0800 (PST) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 444EC43EDE for ; Sun, 22 Dec 2002 10:51:56 -0800 (PST) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id 7DB1910BF8F; Sun, 22 Dec 2002 19:51:54 +0100 (CET) Date: Sun, 22 Dec 2002 19:51:54 +0100 From: "Simon L. Nielsen" To: Leo Bicknell Cc: freebsd-hackers@freebsd.org Subject: Re: Perl issue on freebsd 4.x? Message-ID: <20021222185153.GB2381@nitro.dk> References: <20021219022152.GA6708@ussenterprise.ufp.org> <20021222183621.GA99282@ussenterprise.ufp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021222183621.GA99282@ussenterprise.ufp.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002.12.22 13:36:21 +0000, Leo Bicknell wrote: > Perl 5.8 does not seem to be a part of 4.x, is it in 5.0 or > -CURRENT? Perl 5.8 can be installed from ports (/usr/ports/lang/perl5.8/). FreeBSD 5/-CURRENT does not have perl in the base system at all. -- Simon L. Nielsen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 22:21:23 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F57137B401 for ; Sun, 22 Dec 2002 22:21:22 -0800 (PST) Received: from ns1.ovis.net (ns1.ovis.net [207.0.147.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8877143EE6 for ; Sun, 22 Dec 2002 22:21:21 -0800 (PST) (envelope-from chromexa@ovis.net) Received: from ovis.net (s26.pm5.ovis.net [207.0.147.92]) by ns1.ovis.net (Postfix) with ESMTP id 50BD03BCD; Mon, 23 Dec 2002 01:19:48 -0500 (EST) Message-ID: <3E06AC02.3BD0C826@ovis.net> Date: Mon, 23 Dec 2002 01:24:02 -0500 From: Steve Kudlak Reply-To: chromexa@ovis.net X-Mailer: Mozilla 4.5 [en]C-CCK-MCD ezn/58/n (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Hunt , "'hackers@freebsd.org'" Cc: Kate Sullivan Subject: Re: Mac iBook OS10 + BSD References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Hunt wrote: > I have been using Linux (Slackware) for a number of years on my > desktop, and have never used BSD. From what I've gathered, BSD sounds > like the kind of OS I would like. > > I Now need to get a laptop, and have been thinking of getting a new > Mac Ibook, but OS 10 seems to lack some important features I > want/need, like virtual terminals, things I have grown quite used to. > > Would BSD be a good choice for the iBook as the third OS (along with > OS9 and OS10)? > > How much can BSD share things like utilities and config files with > OS10? Is there any special compatability due to the OSs being similar > in some ways? > > How should I plan my BSD intallation? Any special advantage of having > BSD on a Mac with OS10, as compared to Linux Slackware? > > -- > David Hunt > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-newbies" in the body of the message This brings up an interesting question. Apple makes all sorts of noises about BSD being the basis of the MAC. If I get the bucks I may switch to a MAC. My question is how much of the BSD operating system can one get access to on a MAC running OS X? Has anyone done even simple things like started up cron jobs and the like to do housekeeping? Most of the MAC users I know, know BSD is there but haven't done much with it. IN fact there are noises one can't get at all the internals and the like. Does anyone have any details about all of this stuff. I know this is kind of general question to post on this list. But so far even lurking this list is often where real questions often get answered. Any pointers would be appreciated. Have Fun, Sends Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 22:37: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B622937B401 for ; Sun, 22 Dec 2002 22:37:01 -0800 (PST) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F44243EE5 for ; Sun, 22 Dec 2002 22:37:01 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by rwcrmhc53.attbi.com (rwcrmhc53) with ESMTP id <2002122306370005300k55vte>; Mon, 23 Dec 2002 06:37:00 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id WAA71891; Sun, 22 Dec 2002 22:37:00 -0800 (PST) Date: Sun, 22 Dec 2002 22:36:59 -0800 (PST) From: Julian Elischer To: Steve Kudlak Cc: David Hunt , "'hackers@freebsd.org'" , Kate Sullivan Subject: Re: Mac iBook OS10 + BSD In-Reply-To: <3E06AC02.3BD0C826@ovis.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 23 Dec 2002, Steve Kudlak wrote: > > > David Hunt wrote: > > > I have been using Linux (Slackware) for a number of years on my > > desktop, and have never used BSD. From what I've gathered, BSD sounds > > like the kind of OS I would like. > > > > I Now need to get a laptop, and have been thinking of getting a new > > Mac Ibook, but OS 10 seems to lack some important features I > > want/need, like virtual terminals, things I have grown quite used to. news to me.. I run multiple terminal windows, each running tcsh. That's with an unaltered macosX 10.1.5. from the user perspective it looks a lot like FreeBSD 3.{something} The new one is basically like FreeBSD 4.4. > > > > Would BSD be a good choice for the iBook as the third OS (along with > > OS9 and OS10)? MacOS-X is perfectly fine as a unix. just fire up a terminal window and use sudo when you want to be root > > > > How much can BSD share things like utilities and config files with > > OS10? Is there any special compatability due to the OSs being similar > > in some ways? > > > > How should I plan my BSD intallation? Any special advantage of having > > BSD on a Mac with OS10, as compared to Linux Slackware? Stick with MacOS-X it's going to run better onthis hardware than anything else. > > > > -- > > David Hunt > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-newbies" in the body of the message > > This brings up an interesting question. Apple makes all sorts > of noises about BSD being the basis of the MAC. If I get the > bucks I may switch to a MAC. My question is how much of > the BSD operating system can one get access to on a MAC > running OS X? Has anyone done even simple things like > started up cron jobs and the like to do housekeeping? Most of > the MAC users I know, know BSD is there but haven't done > much with it. IN fact there are noises one can't get at all the > internals and the like. Does anyone have any details about > all of this stuff. I know this is kind of general question to post > on this list. But so far even lurking this list is often where real > questions often get answered. Any pointers would be appreciated. > > Have Fun, > Sends Steve > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Dec 22 22:53:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FF0E37B401 for ; Sun, 22 Dec 2002 22:53:28 -0800 (PST) Received: from smtpout.mac.com (A17-250-248-85.apple.com [17.250.248.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0986143EDC for ; Sun, 22 Dec 2002 22:53:28 -0800 (PST) (envelope-from justin@mac.com) Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id gBN6rRbD010653 for ; Sun, 22 Dec 2002 22:53:27 -0800 (PST) Received: from grinch ([12.234.224.67]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id H7K8H300.5FZ for ; Sun, 22 Dec 2002 22:53:27 -0800 Date: Sun, 22 Dec 2002 22:53:26 -0800 Subject: Re: Mac iBook OS10 + BSD Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) From: "Justin C. Walker" To: Content-Transfer-Encoding: 7bit In-Reply-To: <3E06AC02.3BD0C826@ovis.net> Message-Id: <3C73A95A-1643-11D7-B983-00306544D642@mac.com> X-Mailer: Apple Mail (2.482) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday, December 22, 2002, at 10:24 PM, Steve Kudlak wrote: > > > David Hunt wrote: > >> I have been using Linux (Slackware) for a number of years on my >> desktop, and have never used BSD. From what I've gathered, BSD sounds >> like the kind of OS I would like. [snip] > This brings up an interesting question. Apple makes all sorts > of noises about BSD being the basis of the MAC. FreeBSD 4.4 has, more or less, been integrated with the Darwin/Mac OS X kernel for the 10.2/Jaguar release. It's a real Unix under all the colors. You can get at it with ease, using Terminal, or remotely via ssh/rlogin/telnet. Keep in mind that because there's a serious commercial product around it, and the heritage includes NeXT, it's not identically FreeBSD. The very low layers are Mach-based, which accounts for some differences. The networking is BSD-based, and incorporates much of FreeBSD 4.4, but is not entirely compatible. None of this should bother you if you are not deep into kernel development. > If I get the > bucks I may switch to a MAC. My question is how much of > the BSD operating system can one get access to on a MAC > running OS X? You can get at all of the low-level OS. As above, it's not identical to any flavor of BSD. > Has anyone done even simple things like > started up cron jobs Yup. > and the like to do housekeeping? Most of > the MAC users I know, know BSD is there but haven't done > much with it. IN fact there are noises one can't get at all the > internals and the like. Noises abound, but as is generally the case, the more noise, the less information. > Does anyone have any details about > all of this stuff. I know this is kind of general question to post > on this list. But so far even lurking this list is often where real > questions often get answered. Any pointers would be appreciated. You can lurk on the 'darwin' lists (http://lists.apple.com) for discussions of low-level stuff, as well as kernel extension and driver development. Try the lists at http://www.omnigroup.com for discussions dealing with the management of Mac OS X systems. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | If you're not confused, | You're not paying attention *--------------------------------------*-------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Dec 23 0:59:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFD8637B401 for ; Mon, 23 Dec 2002 00:59:20 -0800 (PST) Received: from federation.addy.com (addy.com [208.11.142.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id E53E943EDE for ; Mon, 23 Dec 2002 00:59:19 -0800 (PST) (envelope-from jim@federation.addy.com) Received: from localhost (jim@localhost) by federation.addy.com (8.9.3/8.9.3) with ESMTP id EAA38496 for ; Mon, 23 Dec 2002 04:00:05 -0500 (EST) (envelope-from jim@federation.addy.com) Date: Mon, 23 Dec 2002 04:00:04 -0500 (EST) From: Jim Sander Cc: "'hackers@freebsd.org'" Subject: Re: Mac iBook OS10 + BSD In-Reply-To: <3E06AC02.3BD0C826@ovis.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG First, this isn't quite appropriate for "hackers" - but I'll reply here since everyone else did. Nothing like the herd mentality. Think different? > > but OS 10 seems to lack some important features I want/need > > like virtual terminals If you demand "real" virutal terminals, you may be SOL- Darwin might offer that via xdm or whatever, but I can't say authoritatively. If you can get by with multiple-desktops, there are third party utilities to help you out. "versiontracker.com" is a good place to start. > > How much can BSD share things like utilities and config files with OS10? For the most part, this works as you'd expect. The exceptions I can think of right away are the /etc/master.passwd and /etc/mail setups. Both by default rely on the proprietary NetInfo database to work. The rc.files are also slightly different, but easily understandable to a FreeBSD user. > My question is how much of the BSD operating system can one get access > to on a MAC running OS X? Some things, like sysctl, will look familiar. Other things won't. Specifically, anything that interfaces with the kernal can be drastically different because of the MACH base. KLDs are (duh) not compatible, but might be adaptable- I'm not enough of a hacker to say for sure. > started up cron jobs and the like to do housekeeping I run half a dozen every day as different users. Never a hiccup. Works the same as cron does on every system I've ever used. All the userland programs I'm used to were available for X natively, or using the "fink" package manage, or easily compiled with few or no problems direct from source. Notable lacks/differences... 1. 'iostat' doesn't work the same, but it's close enough to be useable 2. no easy serial-type communcations, for modem, etc. (I'd love to learn how to bang on the internal modem- right now I'm experimenting with AppleScript to do dial-out stuff, but it's not very useful) 3. X-Darwin (the equivalent of X-Free86) doesn't use accellerated graphics, so large/complex windows can be slow. Honestly, IMO if you're going to buy a mac (or already have) installing another OS is really a waste of time. You won't likely gain anything, and will likely lose a lot of the things that make the mac system good. -=Jim=- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Dec 23 1: 6:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92E9D37B401 for ; Mon, 23 Dec 2002 01:06:20 -0800 (PST) Received: from nebula.wanadoo.fr (ca-sqy-14-72.abo.wanadoo.fr [80.8.67.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33A8243EDA for ; Mon, 23 Dec 2002 01:06:19 -0800 (PST) (envelope-from dak@wanadoo.fr) Received: from nebula.wanadoo.fr (localhost [127.0.0.1]) by nebula.wanadoo.fr (8.12.6/8.12.6) with ESMTP id gBN96jbu000632; Mon, 23 Dec 2002 10:06:45 +0100 (CET) (envelope-from dak@nebula.wanadoo.fr) Received: (from dak@localhost) by nebula.wanadoo.fr (8.12.6/8.12.6/Submit) id gBN96iKW000631; Mon, 23 Dec 2002 10:06:44 +0100 (CET) Date: Mon, 23 Dec 2002 10:06:44 +0100 From: Aurelien Nephtali To: John Cc: hackers@freebsd.org Subject: Re: Accessing trap frame from userland? Message-ID: <20021223090644.GA615@nebula.wanadoo.fr> References: <20021222183400.GA77934@nebula.wanadoo.fr> <20021223025159.GA27162@BSDWins.Com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XsQoSWH+UP9D9v3l" Content-Disposition: inline In-Reply-To: <20021223025159.GA27162@BSDWins.Com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 22, 2002 at 09:51:59PM -0500, John wrote: > After the interupt (from the child issuing a PT_TRACE_ME > ptrace() call, you need to call i386_clr_watch(). >=20 > At this point, you can single step the process using > ptrace(PT_STEP), or by calling i386_set_watch() with > a new address (type DBREG_DR7_EXEC), and then calling > ptrace(PT_CONTINUE). Note: this all assumes you are > getting and putting the debug registers correctly. >=20 > Hope this helps. It's been a while since I've looked > at this stuff... somewhere I've got a sample program > that traces dynamic image loads. If I can find it I'll > hang it off website. >=20 > -john Mmh, that's the method I try to avoid :), according to me it's 'ugly' :) si= nce that need a big if() hack to handle the break issuing from a PT_STEP without mixing it with an user wanted breakpoint. I'd rather trying to access the 'trap frame' if it's possible, otherwise I'll do the single-step-ugly-hack method :) -- Aurelien --XsQoSWH+UP9D9v3l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+BtIkDNsbHbt8ok8RAsQlAJ445z3FP+E17+9NEC0XXjWrYj/RHACgnbOa 4Dnmr/e4bP3dWJZJlY/AyfI= =3zVb -----END PGP SIGNATURE----- --XsQoSWH+UP9D9v3l-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Dec 23 2: 8:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E52037B401 for ; Mon, 23 Dec 2002 02:08:36 -0800 (PST) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ADA643EE8 for ; Mon, 23 Dec 2002 02:08:35 -0800 (PST) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp id 18QPVh-0006Jg-00 for freebsd-hackers@FreeBSD.ORG; Mon, 23 Dec 2002 12:08:34 +0200 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-hackers@FreeBSD.ORG Subject: Compaq-prolient ML370/smp problem Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 23 Dec 2002 12:08:33 +0200 From: Danny Braniss Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi, this box works ok with non SMP kernel, but the SMP gets stuck in APIC_IO: Testing 8254 interrupt delivery the kernel is 4.7-stable - cvsuped today. im including a dmesg output from a non-SMP kernel Happy holidays danny Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.7-STABLE #7: Thu Dec 12 10:54:17 IST 2002 danny@dev:/r+d/obj/r+d/4.7/src/sys/HUJI Timecounter "i8254" frequency 1193182 Hz CPU: Pentium 4 (2387.82-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebfbff,ACC,> real memory = 1073717248 (1048552K bytes) avail memory = 1039552512 (1015188K bytes) Preloaded elf kernel "kernel" at 0xc056a000. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pci0: at 3.0 pci0: (vendor=0x0e11, dev=0xb203) at 4.0 irq 5 pci0: (vendor=0x0e11, dev=0xb204) at 4.2 irq 10 isab0: at device 15.0 on pci0 isa0: on isab0 atapci0: port 0x2000-0x200f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ohci0: mem 0xf5ef0000-0xf5ef0fff irq 11 at device 15.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered pcib1: on motherboard pci1: on pcib1 ahc0: port 0x3000-0x30ff mem 0xf7ff0000-0xf7ff0fff irq 15 at device 3.0 on pci1 aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs ahc1: port 0x3400-0x34ff mem 0xf7fe0000-0xf7fe0fff irq 15 at device 3.1 on pci1 aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs bge0: mem 0xf7fd0000-0xf7fdffff irq 11 at device 4.0 on pci1 bge0: Ethernet address: 00:08:02:de:1b:99 miibus0: on bge0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto pcib2: on motherboard pci2: on pcib2 pcib3: on motherboard pci3: on pcib3 pcib6: on motherboard pci6: on pcib6 pcib10: on motherboard pci10: on pcib10 pcib4: on motherboard pci4: on pcib4 pcib5: on motherboard pci5: on pcib5 eisa0: on motherboard mainboard0: on eisa0 slot 0 orm0: