Linux-Development-Sys Digest #328

2000-12-06 Thread Digestifier

Linux-Development-Sys Digest #328, Volume #8  Wed, 6 Dec 00 22:13:11 EST

Contents:
  Re: Module Compilation Problems ([EMAIL PROTECTED])
  Re: kernel header problems ([EMAIL PROTECTED])
  Re: floating point in kernel... (Rick Ellis)
  Re: Deamons (Rick Ellis)
  Re: Getting the CPU load value in a LKM... (Rick Ellis)
  Re: How to make a BIOS call in Linux (Jonathan Buzzard)
  Re: kernel header problems (Kaz Kylheku)
  crt1.o (Damon Jacobsen)
  Re: c++ in kernel and linker problems ("O.Petzold")
  Re: c++ in kernel and linker problems ("O.Petzold")
  Re: kernel header problems ([EMAIL PROTECTED])
  Re: c++ in kernel and linker problems ([EMAIL PROTECTED])
  A faster memcpy and bzero for x86 (Boris Gjenero)
  Attention NYC Shoppers & Visitors - Beware of Rip-off SY Stores!!! .. 
epDwMLBUS5MC ([EMAIL PROTECTED])



From: [EMAIL PROTECTED]
Subject: Re: Module Compilation Problems
Date: Wed, 06 Dec 2000 19:46:45 GMT

Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>> Of course, the fact that Linus recommends _not_ linking from
>> /usr/include into the kernel tends to carry alot of weight with most
>> people.

> Why should linus recommend so? I imagine he simply doesn't want kernel
> headers at all in the include hierarchy, thus decoupling kernel and
> libraries completely. That's an OK goal. But ...

The various reasons are in the lkml archives. I didn't mean to argue
relative merits of the link, however. I was just pointing out that the
fact that Linus doesn't use it, and recommends noone else does either
is a compelling reason to dump the idea.

It's a shame that the kernel headers continue to cause problems, such
as last weeks post about being unable to ls long files on Debian
systems on lkml.

>> And again, since in RH 7.0 you have the option of installing either a
>> 2.2 or 2.4 test kernel, multiple trees are an issue.

> But apparently the problems caused for people who now can't compile
> their third party modules aren't? Yet another instance of "if you're on
> redhat, you can't compile"? No thank you. Gimme the symlink.

No, if you install either the 2.2 or 2.4 kernel, you'll have the
matching headers. 

-- 
Matt Gauthier <[EMAIL PROTECTED]>

--

From: [EMAIL PROTECTED]
Subject: Re: kernel header problems
Date: Wed, 06 Dec 2000 19:58:32 GMT

Kaz Kylheku <[EMAIL PROTECTED]> wrote:
>>/usr/src/linux/include/linux/signal.h:159: warning: assignment of negative
>>value `-1' to `long unsigned int'

> There is nothing wrong with this assignment. To anyone with half a clue in
> C or C++ programming, it's a familiar idiom for the maximum value of the
> unsigned type.  I find warnings like this to be extremely annoying.
> Just ignore it.

You could make the argument that i = ULONG_MAX; is a familiar idiom
for the maximum value of an unsigned type as well. That being the
case, the compiler is perfectly justified in warning about the other
as a potential error.

-- 
Matt Gauthier <[EMAIL PROTECTED]>

--

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: floating point in kernel...
Date: 6 Dec 2000 20:13:54 GMT

In article <9031b0$pmm$[EMAIL PROTECTED]>,
Perego Paolo  <[EMAIL PROTECTED]> wrote:

>Hi guys, I know that I can't use floating point in my kernel module but
>I need to calculate a thing like system load.

You don't need floating point to do that calculation.  Scaled integers
should work just fine if you pay attention.

--
http://www.spinics.net/linux

--

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Deamons
Date: 6 Dec 2000 20:38:30 GMT

In article <[EMAIL PROTECTED]>,
Lew Pitcher  <[EMAIL PROTECTED]> wrote:

>> /* Close low fd's and reopen as /dev/null */
>> for(i=0; i < 3; i++) {
>> close(i);
>> open("/dev/null", O_RDWR, 0);
>> }

>  /* move to root directory */
>  chdir("/");

I'd also use reopen instead of close+open:

freopen("/dev/null", "r", stdin);
freopen("/dev/null", "w", stdout);
freopen("/dev/null", "w", stderr);

--
http://www.spinics.net/linux

--

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Getting the CPU load value in a LKM...
Date: 6 Dec 2000 21:34:25 GMT

In article <908fhq$r3q$[EMAIL PROTECTED]>,
Perego Paolo  <[EMAIL PROTECTED]> wrote:

>Hi guys, it's me again! :) In my kernel module I'm writing, I need to
>know the CPU load value calculated by the kernel. Linking timer.c file
>in my module I think isn&

Linux-Development-Sys Digest #328

1999-01-25 Thread Digestifier

Linux-Development-Sys Digest #328, Volume #6 Mon, 25 Jan 99 08:13:33 EST

Contents:
  Re: Comparison of Swing, Qt, GTk? (Richard Jones)
  Re: How can I build a Linux system from scratch - NO distribution? (Richard Jones)
  Re: linux crashes on nfs and sound!!! (Bob)
  Mad16 / Opti 82C924 / miro PCM12 Rev.E (Karsten Mueller)
  Re: Comparison of Swing, Qt, GTk? (Michael Schuerig)
  Re: Modest next goal for Linux ("Edwin van der Elst")
  Re: Modest next goal for Linux ([EMAIL PROTECTED])
  Re: TAO: the ultimate OS (PILCH Hartmut)
  Re: TAO: the ultimate OS (PILCH Hartmut)
  how? (zerocool)
  Re: how? (zerocool)
  Re: Modest next goal for Linux (Matthias Warkus)
  Re: Modest next goal for Linux (Matthias Warkus)
  Re: can't telnet to linux (wim delvaux)
  Re: Modest next goal for Linux ("John De Hoog")
  epson stylus photo 700 drivers (Adam Hamflett)



From: Richard Jones <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.java.gui
Subject: Re: Comparison of Swing, Qt, GTk?
Date: Mon, 25 Jan 1999 09:52:10 +

BL  wrote:
: In comp.os.linux.development.system Michael Schuerig <[EMAIL PROTECTED]> wrote:

: : I'm wondering has done a comparison of Java's Swing with Qt (KDE /Linux)
: : and GTk (GNOME/Linux)?

What sort of comparison? Speed? Memory
usage? Usability? Since all three
toolkits work with three different
languages (Java, C++ and `mainly C but
often Scheme' respectively) you should
pick the right toolkit based on language,
availability and licensing. There's not
really a way to compare the toolkits side
by side on the same application.

: I'm certainly no java expert - only been playing wiht it real informally, but
: with the current free tools (jdk) on linux and even on my work system (irix),
: I'd have to say that compiles are PAINFULLY slow, as are app STARTUP times!
: so slow that I abandoned doing a gui project in java (swing) and went back to
: good old ANSI C with gtk+.   aah - nice comfortable Makefiles, etc ;-)

: until the performance is AT LEAST doubled in java, I don't know of anyone who
: really takes it seriously (when the situation at least allows for other
: choices).  in some situations, java may be the only option, but given a
: choice, I'm not convinced java is ready for prime time.

What processor are you using? There's no
real problem with Java + TYA + Swing
on a Pentium II, but it can be a bit
painful on earlier models.

Rich.

-- 
-  Richard Jones. Linux contractor London and SE areas.-
-Very boring homepage at: http://www.annexia.demon.co.uk/  -
- You are currently the 1,991,243,100th visitor to this signature. -
-Original message content Copyright (C) 1998 Richard Jones.-

--

From: Richard Jones <[EMAIL PROTECTED]>
Subject: Re: How can I build a Linux system from scratch - NO distribution?
Date: Mon, 25 Jan 1999 09:55:02 +

Jens Kristian Søgaard <[EMAIL PROTECTED]> wrote:
: Richard Jones <[EMAIL PROTECTED]> writes:

:> :> a system with X-Windows and various components taking a very long time to
:> : This is probably a DNS problem. Setup your DNS server to reply with a
:> : "nonexistent domain"-error when an internet-domain is requested
:> : ( ofcourse it should reply normally when connected to the net ).
:> Can you explain how to do this?

: Well, I can try ;-)

: If you have a local DNS server running on your Linux computer ( named
: ), it's quite easy. Just make sure that you have no forwarders defined
: ( they aren't accessible when you're not connected ). Then remove the
: zone "." so that it's doesn't use any internet-servers.

: Instead of removing the zone, you could empty the named.ca file.

My real problem is that I only want to refuse
queries when the dial-up link is down. When the
link is up (it's started by hand), I would like
everything to work as normal? I'd really like
named to look for the existence of a file before
it tries to forward a query (and if the file isn't
there, use its own cache exclusively, or else
reject the request). I suspect that one fine day
I will end up hacking the functionality into named
myself ...

Rich.

-- 
-  Richard Jones. Linux contractor London and SE areas.-
-Very boring homepage at: http://www.annexia.demon.co.uk/  -
- You are currently the 1,991,243,100th visitor to this signature. -
-Original message content Copyright (C) 1998 Richard Jones.-

--

From: Bob <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: linux crashes on nfs and sound!!!
Date: Mon, 25 Jan 1999 06:17:54 -0500

Henk van der Kamp wrote:

> Hi!
>
> My linux box crashes when I copy stuff from a nfs mounted disk. It only
> happens when I use my sound blaster.