From owner-freebsd-arch@FreeBSD.ORG Sun Dec 14 19:34:56 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C904216A4CE for ; Sun, 14 Dec 2003 19:34:56 -0800 (PST) Received: from mx.nsu.ru (mx.nsu.ru [212.192.164.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45F2A43D41 for ; Sun, 14 Dec 2003 19:34:53 -0800 (PST) (envelope-from danfe@regency.nsu.ru) Received: from mail by mx.nsu.ru with drweb-scanned (Exim 3.35 #1 (Debian)) id 1AVjXA-0004x1-00; Mon, 15 Dec 2003 09:36:36 +0600 Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 3.35 #1 (Debian)) id 1AVjX8-0004vR-00; Mon, 15 Dec 2003 09:36:34 +0600 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.12.9p2/8.12.9) with ESMTP id hBF3big1089289; Mon, 15 Dec 2003 09:37:44 +0600 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.12.9p2/8.12.9/Submit) id hBF3bfDM089236; Mon, 15 Dec 2003 09:37:41 +0600 (NOVT) (envelope-from danfe) Date: Mon, 15 Dec 2003 09:37:40 +0600 From: Alexey Dokuchaev To: Nate Lawson Message-ID: <20031215033740.GB61236@regency.nsu.ru> References: <20031213130351.N59162@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031213130351.N59162@root.org> User-Agent: Mutt/1.4.1i X-Envelope-To: nate@root.org, arch@freebsd.org, acpi-jp@jp.freebsd.org cc: arch@freebsd.org cc: acpi-jp@jp.freebsd.org Subject: Re: Power profile script X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 03:34:56 -0000 On Sat, Dec 13, 2003 at 01:12:03PM -0800, Nate Lawson wrote: > > I'm mostly looking for style input on the /etc/power_profile script since > I'm not familiar with our scripting guidelines. Note that it's called > from devd (or manually by the user) and is not an rc.d boot-time thing. Hmm, it seems that `foo.conf' is preferred form, rather than foo_profile, for naming files in /etc. Am I right? ./danfe From owner-freebsd-arch@FreeBSD.ORG Mon Dec 15 01:52:59 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE9A216A4CE for ; Mon, 15 Dec 2003 01:52:59 -0800 (PST) Received: from telecom.net.et (ns2.telecom.net.et [213.55.64.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id B950243D1F for ; Mon, 15 Dec 2003 01:52:55 -0800 (PST) (envelope-from mtm@identd.net) Received: from [213.55.69.186] (HELO pool-151-200-10-97.res.east.verizon.net) by telecom.net.et (CommuniGate Pro SMTP 3.4.8) with ESMTP-TLS id 32043701; Mon, 15 Dec 2003 12:47:36 +0300 Received: from mobile.acsolutions.com (localhost [127.0.0.1]) ESMTP id hBF9qfUK001492; Mon, 15 Dec 2003 12:52:43 +0300 (EAT) (envelope-from mtm@mobile.acsolutions.com) Received: (from mtm@localhost) by mobile.acsolutions.com (8.12.10/8.12.10/Submit) id hBF9qeck001491; Mon, 15 Dec 2003 12:52:40 +0300 (EAT) (envelope-from mtm) Date: Mon, 15 Dec 2003 12:52:38 +0300 From: Mike Makonnen To: Nate Lawson Message-ID: <20031215095238.GB840@mobile.acsolutions.com> References: <20031213130351.N59162@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031213130351.N59162@root.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD/5.2-CURRENT (i386) cc: arch@FreeBSD.org cc: acpi-jp@jp.freebsd.org Subject: Re: Power profile script X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 09:52:59 -0000 On Sat, Dec 13, 2003 at 01:12:03PM -0800, Nate Lawson wrote: > > I'm mostly looking for style input on the /etc/power_profile script since > I'm not familiar with our scripting guidelines. Note that it's called > from devd (or manually by the user) and is not an rc.d boot-time thing. /etc/rc.d is not just for boot time scripts. You can put 'nostart' in the script's KEYWORD section if you don't want it processed at boot time. My personal feeling is that if it is configured through rc.conf then it should go in /etc/rc.d, but I won't insist on it. > + > +# Pull in default values. > +if [ -r /etc/defaults/rc.conf ]; then > + . /etc/defaults/rc.conf > + source_rc_confs > +elif [ -r /etc/rc.conf ]; then > + . /etc/rc.conf > +fi Please source /etc/rc.subr and use the load_rc_config() routine to do this. Usage: load_rc_config $command. If you don't want it to source a /etc/rc.conf.d/$command file, then just use 'XXX' as its argument. > + > +if [ $# -ne 1 ]; then > + echo "Usage: $0 [0x00|0x01]" > + exit 1 > +fi There are also other convenience routines in that file that you may wish to use. For example the err() routine might be of use in the above situation. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: 00E8 61BC 0D75 7FFB E4D3 6BF1 B239 D010 3215 D418 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon ! From owner-freebsd-arch@FreeBSD.ORG Mon Dec 15 13:26:48 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97DC016A4CE for ; Mon, 15 Dec 2003 13:26:48 -0800 (PST) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F61D43D1F for ; Mon, 15 Dec 2003 13:26:47 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 1811 invoked from network); 15 Dec 2003 21:26:46 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 15 Dec 2003 21:26:46 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id hBFLQiM0008267; Mon, 15 Dec 2003 16:26:44 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20031213130351.N59162@root.org> Date: Mon, 15 Dec 2003 16:26:46 -0500 (EST) From: John Baldwin To: Nate Lawson X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: arch@freebsd.org cc: acpi-jp@jp.freebsd.org Subject: RE: Power profile script X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 21:26:48 -0000 On 13-Dec-2003 Nate Lawson wrote: > I've implemented a script for changing power profiles in userland when you > go on or off AC power. The defaults will just change the CPU idle states > to the lowest power ones when off AC power. Throttling will stay at 100%. > Of course, the user can override these in rc.conf. In the future, other > power profile features will be maintained by the same script. You have to > be running devd to use this. > > The special values LOW and HIGH refer to the lowest and highest performing > settings for a given sysctl. So if a system has 8 throttling values, from > 1 to 8, HIGH would be 8 and LOW would be 1. You can also specify a > particular value ("2") if you know what you want. > > I'm mostly looking for style input on the /etc/power_profile script since > I'm not familiar with our scripting guidelines. Note that it's called > from devd (or manually by the user) and is not an rc.d boot-time thing. This looks really cool! I do think Mike's suggestions on moving this to /etc/rc.d/ and using functions from /etc/rc.subr might be a good thing to do. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ From owner-freebsd-arch@FreeBSD.ORG Mon Dec 15 14:06:33 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CD0816A4CE for ; Mon, 15 Dec 2003 14:06:33 -0800 (PST) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACE3243D1F for ; Mon, 15 Dec 2003 14:06:31 -0800 (PST) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 26D0E6530E; Mon, 15 Dec 2003 22:06:30 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32424-02-12; Mon, 15 Dec 2003 22:06:29 +0000 (GMT) Received: from saboteur.dek.spc.org (unknown [82.147.19.91]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 4B4A065439; Mon, 15 Dec 2003 22:06:28 +0000 (GMT) Received: by saboteur.dek.spc.org (Postfix, from userid 1001) id 5B2C4BE; Mon, 15 Dec 2003 22:06:27 +0000 (GMT) Date: Mon, 15 Dec 2003 22:06:27 +0000 From: Bruce M Simpson To: Nate Lawson Message-ID: <20031215220627.GB16497@saboteur.dek.spc.org> References: <20031213130351.N59162@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031213130351.N59162@root.org> cc: arch@freebsd.org cc: acpi-jp@jp.freebsd.org Subject: Re: Power profile script X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 22:06:33 -0000 On Sat, Dec 13, 2003 at 01:12:03PM -0800, Nate Lawson wrote: > I'm mostly looking for style input on the /etc/power_profile script since > I'm not familiar with our scripting guidelines. Note that it's called > from devd (or manually by the user) and is not an rc.d boot-time thing. One of the things green suggested to me when I was airing out the new trafd.sh rcNG script was the use of $(...) instead of the backtick operator -- apparently this has slightly different semantics but it does save on forking overhead. BMS From owner-freebsd-arch@FreeBSD.ORG Mon Dec 15 15:16:51 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C8BE16A4CE for ; Mon, 15 Dec 2003 15:16:51 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6784143D41 for ; Mon, 15 Dec 2003 15:16:49 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id hBFNGmHe044627; Mon, 15 Dec 2003 17:16:48 -0600 (CST) (envelope-from dan) Date: Mon, 15 Dec 2003 17:16:48 -0600 From: Dan Nelson To: Bruce M Simpson Message-ID: <20031215231648.GH17799@dan.emsphone.com> References: <20031213130351.N59162@root.org> <20031215220627.GB16497@saboteur.dek.spc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031215220627.GB16497@saboteur.dek.spc.org> X-OS: FreeBSD 5.2-BETA X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: arch@freebsd.org cc: acpi-jp@jp.freebsd.org cc: Nate Lawson Subject: Re: Power profile script X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 23:16:51 -0000 In the last episode (Dec 15), Bruce M Simpson said: > On Sat, Dec 13, 2003 at 01:12:03PM -0800, Nate Lawson wrote: > > I'm mostly looking for style input on the /etc/power_profile script since > > I'm not familiar with our scripting guidelines. Note that it's called > > from devd (or manually by the user) and is not an rc.d boot-time thing. > > One of the things green suggested to me when I was airing out the new > trafd.sh rcNG script was the use of $(...) instead of the backtick > operator -- apparently this has slightly different semantics but it > does save on forking overhead. It shouldn't have any difference wrt overhead; `` and $() end up doing just about the same thing in src/bin/sh/parser.c; see the code starting at parsebackq. oldstyle is 1 when processing the `` style. They both fork under the same conditions. I use the $() syntax mainly because it's easier to nest. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-arch@FreeBSD.ORG Mon Dec 15 23:06:11 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8B3216A4CF for ; Mon, 15 Dec 2003 23:06:11 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id AAF2343D1F for ; Mon, 15 Dec 2003 23:06:10 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 65350 invoked by uid 1000); 16 Dec 2003 07:06:13 -0000 Date: Mon, 15 Dec 2003 23:06:13 -0800 (PST) From: Nate Lawson To: Mike Makonnen In-Reply-To: <20031215095238.GB840@mobile.acsolutions.com> Message-ID: <20031215230535.S65338@root.org> References: <20031213130351.N59162@root.org> <20031215095238.GB840@mobile.acsolutions.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: arch@FreeBSD.org cc: acpi-jp@jp.freebsd.org Subject: Re: Power profile script X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 07:06:11 -0000 On Mon, 15 Dec 2003, Mike Makonnen wrote: > On Sat, Dec 13, 2003 at 01:12:03PM -0800, Nate Lawson wrote: > > > > I'm mostly looking for style input on the /etc/power_profile script since > > I'm not familiar with our scripting guidelines. Note that it's called > > from devd (or manually by the user) and is not an rc.d boot-time thing. > > /etc/rc.d is not just for boot time scripts. You can put 'nostart' in > the script's KEYWORD section if you don't want it processed at boot time. > My personal feeling is that if it is configured through rc.conf then it > should go in /etc/rc.d, but I won't insist on it. > > > + > > +# Pull in default values. > > +if [ -r /etc/defaults/rc.conf ]; then > > + . /etc/defaults/rc.conf > > + source_rc_confs > > +elif [ -r /etc/rc.conf ]; then > > + . /etc/rc.conf > > +fi > > Please source /etc/rc.subr and use the load_rc_config() routine > to do this. Usage: load_rc_config $command. If you don't want > it to source a /etc/rc.conf.d/$command file, then just use 'XXX' > as its argument. > > > + > > +if [ $# -ne 1 ]; then > > + echo "Usage: $0 [0x00|0x01]" > > + exit 1 > > +fi > > There are also other convenience routines in that file > that you may wish to use. For example the err() routine > might be of use in the above situation. Ok, thanks for the comments. I'll address these and anything else I can pull from rc.subr and then run it by you before committing. -Nate From owner-freebsd-arch@FreeBSD.ORG Wed Dec 17 12:50:29 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 856E516A4F6; Wed, 17 Dec 2003 12:50:29 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C74243D46; Wed, 17 Dec 2003 12:50:24 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) hBHKoO5x083659; Wed, 17 Dec 2003 12:50:24 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost)hBHKoOET083658; Wed, 17 Dec 2003 12:50:24 -0800 (PST) (envelope-from sgk) Date: Wed, 17 Dec 2003 12:50:23 -0800 From: Steve Kargl To: "Jacques A. Vidrine" Message-ID: <20031217205023.GA83523@troutmask.apl.washington.edu> References: <200312170256.hBH2uSOn062945@repoman.freebsd.org> <200312170254.hBH2sTJx062816@repoman.freebsd.org> <20031217132252.GA6018@madman.celabo.org> <20031217133953.GD60229@elvis.mu.org> <20031217140201.GB6018@madman.celabo.org> <483CA6BC-30CB-11D8-AAAC-000393BB9222@queasyweasel.com> <20031217204212.GA31706@madman.celabo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031217204212.GA31706@madman.celabo.org> User-Agent: Mutt/1.4.1i cc: jkh@queasyweasel.com cc: freebsd-arch@freebsd.org Subject: Re: cvs commit: src/include fnmatch.h X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2003 20:50:29 -0000 On Wed, Dec 17, 2003 at 02:42:12PM -0600, Jacques A. Vidrine wrote: > On Wed, Dec 17, 2003 at 11:57:45AM -0800, Jordan K. Hubbard wrote: > > > > On Dec 17, 2003, at 6:02 AM, Jacques A. Vidrine wrote: > > > > >The only reason I brought it up is because the absence of FNM_NOSYS on > > >BSD for the past decade apparently hasn't been noticed until now (why > > >now?), seeming to imply that there aren't any such applications. > > > > Glad you asked. It's basically my intention to bring FreeBSD's headers > > and libraries as close to conformance to Unix03 as I can over the next > > few months (years?), > > Excellent! Then probably we'll see you on freebsd-standards. > (CC trimmed and redirected to freebsd-arch) The oldest open PR is i386/105, which bemoans the sorry state of libm with respect to proper error/exception handling. AFAIK, this issue affects all *BSD. I glanced at the opendarwin source tree and noted that some work has been done in this area. Is this on your radar? -- Steve From owner-freebsd-arch@FreeBSD.ORG Wed Dec 17 17:20:22 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAE7916A4D2; Wed, 17 Dec 2003 17:20:22 -0800 (PST) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BFAB43D45; Wed, 17 Dec 2003 17:20:17 -0800 (PST) (envelope-from jkh@queasyweasel.com) Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out3.apple.com (8.12.10/8.12.9) with ESMTP id hBI1KHFt018756; Wed, 17 Dec 2003 17:20:17 -0800 (PST) Received: from relay2.apple.com (relay2.apple.com) by mailgate1.apple.com ; Wed, 17 Dec 2003 17:20:13 -0800 Received: from [17.219.199.29] ([17.219.199.29]) by relay2.apple.com (8.12.10/8.12.9) with ESMTP id hBI1KFc4010274; Thu, 18 Dec 2003 01:20:15 GMT In-Reply-To: <20031217205023.GA83523@troutmask.apl.washington.edu> References: <200312170256.hBH2uSOn062945@repoman.freebsd.org> <200312170254.hBH2sTJx062816@repoman.freebsd.org> <20031217132252.GA6018@madman.celabo.org> <20031217133953.GD60229@elvis.mu.org> <20031217140201.GB6018@madman.celabo.org> <483CA6BC-30CB-11D8-AAAC-000393BB9222@queasyweasel.com> <20031217204212.GA31706@madman.celabo.org> <20031217205023.GA83523@troutmask.apl.washington.edu> Mime-Version: 1.0 (Apple Message framework v609) Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-8-1061420293; protocol="application/pkcs7-signature" Message-Id: <56A59C9A-30F8-11D8-AAAC-000393BB9222@queasyweasel.com> From: "Jordan K. Hubbard" Date: Wed, 17 Dec 2003 17:20:17 -0800 To: Steve Kargl X-Mailer: Apple Mail (2.609) X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: "Jacques A. Vidrine" cc: freebsd-arch@freebsd.org Subject: Re: cvs commit: src/include fnmatch.h X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 01:20:23 -0000 --Apple-Mail-8-1061420293 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Was this question aimed at Jacques or myself? On Dec 17, 2003, at 12:50 PM, Steve Kargl wrote: > The oldest open PR is i386/105, which bemoans the sorry state > of libm with respect to proper error/exception handling. AFAIK, > this issue affects all *BSD. I glanced at the opendarwin source > tree and noted that some work has been done in this area. Is > this on your radar? > -- Jordan K. Hubbard Engineering Manager, BSD technology group Apple Computer --Apple-Mail-8-1061420293-- From owner-freebsd-arch@FreeBSD.ORG Thu Dec 18 12:53:24 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88D4116A4CE for ; Thu, 18 Dec 2003 12:53:24 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id BB04A43D1D for ; Thu, 18 Dec 2003 12:53:21 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 74408 invoked by uid 1000); 18 Dec 2003 20:53:22 -0000 Date: Thu, 18 Dec 2003 12:53:22 -0800 (PST) From: Nate Lawson To: arch@freebsd.org Message-ID: <20031218124754.O74387@root.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: acpi-jp@jp.freebsd.org Subject: acpi_toshiba and acpi_asus drivers X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 20:53:24 -0000 I'm prepping/reworking some user-submitted drivers for import. I'd like some comments on the directory structure. The hardware both drive is everything from fans to hotkeys to lcd backlight. Both are very hw-specific and do not conform to the ACPI spec although they do control their functions through ACPI. The directory structure I'm currently working with is: sys/i386/acpica/acpi_toshiba.c sys/i386/acpica/acpi_asus.c sys/modules/acpi_toshiba/Makefile sys/modules/acpi_asus/Makefile share/man/man4/acpi_toshiba.4 share/man/man4/acpi_asus.4 One alternative is to their modules under the acpi dir (e.g., sys/modules/acpi/acpi_toshiba). Also, the driver src could be sys/dev/acpi_toshiba. However, a new dir for just one file seems a bit much. My main concern is that as these drivers proliferate that we keep the dir structure neat. Thanks, Nate From owner-freebsd-arch@FreeBSD.ORG Thu Dec 18 12:58:16 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 718A916A4CE for ; Thu, 18 Dec 2003 12:58:16 -0800 (PST) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9505643D36 for ; Thu, 18 Dec 2003 12:58:14 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 26674 invoked from network); 18 Dec 2003 20:58:14 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 18 Dec 2003 20:58:14 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id hBIKw9M0024577; Thu, 18 Dec 2003 15:58:09 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20031218124754.O74387@root.org> Date: Thu, 18 Dec 2003 15:58:21 -0500 (EST) From: John Baldwin To: Nate Lawson X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: arch@freebsd.org cc: acpi-jp@jp.freebsd.org Subject: RE: acpi_toshiba and acpi_asus drivers X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 20:58:16 -0000 On 18-Dec-2003 Nate Lawson wrote: > I'm prepping/reworking some user-submitted drivers for import. I'd like > some comments on the directory structure. The hardware both drive is > everything from fans to hotkeys to lcd backlight. Both are very > hw-specific and do not conform to the ACPI spec although they do control > their functions through ACPI. > > The directory structure I'm currently working with is: > sys/i386/acpica/acpi_toshiba.c > sys/i386/acpica/acpi_asus.c > sys/modules/acpi_toshiba/Makefile > sys/modules/acpi_asus/Makefile > share/man/man4/acpi_toshiba.4 > share/man/man4/acpi_asus.4 > > One alternative is to their modules under the acpi dir (e.g., > sys/modules/acpi/acpi_toshiba). Also, the driver src could be > sys/dev/acpi_toshiba. However, a new dir for just one file seems a bit > much. My main concern is that as these drivers proliferate that we keep > the dir structure neat. Having a /sys/modules/acpi with acpi, acpi_toshiba, and acpi_asus in them is probably a good idea. Putting the files under sys/i386/acpica is also probably ok. Should the manpages be in man4.i386 rather than man4 though? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/