From: Ducrot Bruno <ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
To: Faye Pearson <faye-6JSjyQ0Qj1ReoWH0uzbU5w@public.gmane.org>
Cc: Ducrot Bruno <ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>,
Malte Thoma <thoma-iYtK5bfT9M8b1SvskN2V4Q@public.gmane.org>,
ACPI-Devel
<Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: heatload 0.4 now with throttling support
Date: Thu, 19 Dec 2002 16:39:45 +0100 [thread overview]
Message-ID: <20021219153945.GI4257@poup.poupinou.org> (raw)
In-Reply-To: <20021219152724.GA14703-6JSjyQ0Qj1ReoWH0uzbU5w@public.gmane.org>
On Thu, Dec 19, 2002 at 03:27:24PM +0000, Faye Pearson wrote:
> Ducrot Bruno [ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org] wrote:
> > > The only thing you can do is opendir("/proc/acpi/thermalzone"), then
> > > readdir for each item - ignore . and .. of course.
> >
> > No. scandir(). You can alphasort.
>
> Picky :) What I was trying to say is that you've got no choice but to
> scan/read directories, you can't hardcode.
>
> Scandir is cute, but perhaps unnecessary in a procfs where the nodes are
> created in-order anyway?
Nope. I really need to scandir() especially for the batteries case, because
the opendir() gave me BAT2 then BAT1 at least for me.
Cheers,
--
Ducrot Bruno
-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.
-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now! Before the Holidays pass you by.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
next prev parent reply other threads:[~2002-12-19 15:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-18 14:07 heatload 0.4 now with throttling support Malte Thoma
[not found] ` <20021218153355.GK347@poup.poupinou.org>
[not found] ` <20021218153355.GK347-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2002-12-18 16:13 ` Malte Thoma
[not found] ` <3E009EB5.7010109-iYtK5bfT9M8b1SvskN2V4Q@public.gmane.org>
2002-12-18 17:08 ` Faye Pearson
[not found] ` <20021218170828.GA9127-6JSjyQ0Qj1ReoWH0uzbU5w@public.gmane.org>
2002-12-18 17:22 ` Malte Thoma
[not found] ` <3E00AEC8.9050906-iYtK5bfT9M8b1SvskN2V4Q@public.gmane.org>
2002-12-18 18:03 ` Faye Pearson
[not found] ` <20021218180329.GA9439-6JSjyQ0Qj1ReoWH0uzbU5w@public.gmane.org>
2002-12-19 13:23 ` Ducrot Bruno
[not found] ` <20021219132303.GH4257-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2002-12-19 15:27 ` Faye Pearson
[not found] ` <20021219152724.GA14703-6JSjyQ0Qj1ReoWH0uzbU5w@public.gmane.org>
2002-12-19 15:39 ` Ducrot Bruno [this message]
2002-12-19 12:09 ` Ducrot Bruno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021219153945.GI4257@poup.poupinou.org \
--to=ducrot-kk6yzipjem5g9huczpvpmw@public.gmane.org \
--cc=Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=faye-6JSjyQ0Qj1ReoWH0uzbU5w@public.gmane.org \
--cc=thoma-iYtK5bfT9M8b1SvskN2V4Q@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox