Linux-Development-Sys Digest #160, Volume #8 Wed, 20 Sep 00 09:13:11 EDT
Contents:
Re: new windowing system (Allin Cottrell)
Autoconf for NT. (Thaddeus L. Olczyk)
Re: Compiling kernel with gcc 2.95? (Allin Cottrell)
recory problem (Bo - Sun)
Re: Multiple c source files for a kernel module? (Peter Pointner)
How to add a system call (Cleve)
s3 virge accelerated specification ("Ian Dichkovsky")
Tracing kernel TCP source code, tutorial wanted!! (Vive l'amour)
Re: Autoconf for NT. ("Daniel Dittmar")
Re: 64M buffer passed from user to kernel (Mathias Waack)
Re: 64M buffer passed from user to kernel (Mathias Waack)
Help: Kernel hang/coredump analysis (Liaw Yong Shyang)
Re: new windowing system (Casper H.S. Dik - Network Security Engineer)
Re: PC speaker text-to-speech (Marc SCHAEFER)
How to allocate non cachable driver space? (F. Heitkamp)
Re: new windowing system (Aurel Balmosan)
Re: new windowing system (Alexander Viro)
Re: new windowing system (Alexander Viro)
Re: new windowing system ("Fr�d�ric G. MARAND")
Re: MS Visual Studio -> CodeForge?? (CDM)
Re: Help: Kernel hang/coredump analysis (Andreas K�h�ri)
High precision timer needed (Stefor-6)
Re: new windowing system (Casper H.S. Dik - Network Security Engineer)
Re: new windowing system (Casper H.S. Dik - Network Security Engineer)
Re: new windowing system (Alexander Viro)
----------------------------------------------------------------------------
From: Allin Cottrell <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: Tue, 19 Sep 2000 22:44:07 -0400
[EMAIL PROTECTED] wrote:
> Not having writen any code for X, and not really understanding how the
> core of X works... I would like to know why, WHY!!!, are not these great
> features set up as run time loadable modules like the kernel modules of
> Linux?
I guess you haven't heard of XFree86 4.0.
--
Allin Cottrell
Department of Economics
Wake Forest University, NC
------------------------------
From: [EMAIL PROTECTED] (Thaddeus L. Olczyk)
Crossposted-To: comp.software.config-mgmt
Subject: Autoconf for NT.
Date: Wed, 20 Sep 2000 03:11:20 GMT
Reply-To: [EMAIL PROTECTED]
Sorry to crosspost to the linux, but since autoconf is such a mainstay
of open source I thought it was appropriate there.
The question is basically simple:
Is there a version of autoconf that works for NT?
A more general question is how to stabley maintain ( automated )builds
of the same
source code on both linus and NT.
------------------------------
From: Allin Cottrell <[EMAIL PROTECTED]>
Subject: Re: Compiling kernel with gcc 2.95?
Date: Tue, 19 Sep 2000 22:53:08 -0400
Paul Hughett wrote:
>
> I am working on a joint project for which the use of gcc 2.95 has just
> become mandatory--the code won't compile under the older compilers.
> However, I still would like to be able to compile custom kernels when
> necessary. Is it safe to do this using gcc 2.95, or do I have to go
> to the trouble of maintaining two versions of the compiler?
"They" say that gcc 2.7.2.3 is safer. It's possible to keep a minimal
version of the earlier gcc on hand, since the kernel is straight C
and you don't need all the extra stuff for C++, Objective C and
all that. About 3MB takes care of it.
Allin Cottrell.
------------------------------
From: Bo - Sun <[EMAIL PROTECTED]>
Subject: recory problem
Date: Tue, 19 Sep 2000 22:59:29 -0500
hi, everyone:
What is recovery partition of linux?
I want to install NT and RedHat on the same PC, and the third partition
(the size is about 300M-400M) is used for recovery partition. How is it
used when the RedHat crashes? Can someone give me some hint about it?
thanks,
Bo
------------------------------
From: Peter Pointner <[EMAIL PROTECTED]>
Subject: Re: Multiple c source files for a kernel module?
Date: 20 Sep 2000 07:43:38 +0200
Ed Hudson <[EMAIL PROTECTED]> wrote:
> Is it possible to create a kernel module from more than one source
> file? If so, how would you go about compiling it?
Compile as usual, link them using "ld -r". Assuming you have a.c and b.c,
you could do something like:
cc -c -O2 a.c b.c
ld -r -o ab.o a.o b.o
Peter
------------------------------
From: Cleve <[EMAIL PROTECTED]>
Subject: How to add a system call
Date: Wed, 20 Sep 2000 14:18:44 +0800
Can I add a system call by module? if yes, how can I achieve it?
Besides, when I use printk in a module. It doesn't have any effect when
I am using xterm in GNOME. But if I quit xwin and install that module
again. It works well. Why?
Thanks,
Cleve.
------------------------------
From: "Ian Dichkovsky" <[EMAIL PROTECTED]>
Crossposted-To:
alt.comp.hardware,alt.comp.hardware.homebuilt,alt.comp.hardware.pc-homebuilt,comp.hardware,comp.ibm.pc.hardware,comp.os.linux,comp.os.linux.hardware,comp.os.linux.questions,comp.os.linux.x,comp.os.ms-windows.vide
Subject: s3 virge accelerated specification
Date: Wed, 20 Sep 2000 10:18:19 +0300
Hi !
(Sorry for bad English)
I want to write an accelerated video driver for Linux
(or maybe later for other systems ....).
Where I could download specification(documentation) on
S3 Virge DX/GX(375/385)?(html, pdf, TeX, dvi, ... )
Samples of using accelerated
capabilities ?
Thanks !
------------------------------
From: [EMAIL PROTECTED] (Vive l'amour)
Crossposted-To: comp.os.linux.networking
Subject: Tracing kernel TCP source code, tutorial wanted!!
Date: 20 Sep 2000 08:41:48 GMT
Hi, I am tracing TCP source code of Linux 2.2 kernel, but it's huge and
complex, are there any tutorials or commentary documents that gives higher
level overview available?
Thank you very much!
------------------------------
From: "Daniel Dittmar" <[EMAIL PROTECTED]>
Crossposted-To: comp.software.config-mgmt
Subject: Re: Autoconf for NT.
Date: Wed, 20 Sep 2000 10:53:14 +0200
Because autoconf is based on shell scripting, you can use it by installing
the cygnus tools. Using it with VC++ requires to write a wrapper which
translates standard unix cc options like -g into the equivalent cl options.
Daniel
--
Daniel Dittmar
[EMAIL PROTECTED]
SAPLabs Berlin
"Thaddeus L. Olczyk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Sorry to crosspost to the linux, but since autoconf is such a mainstay
> of open source I thought it was appropriate there.
>
> The question is basically simple:
> Is there a version of autoconf that works for NT?
> A more general question is how to stabley maintain ( automated )builds
> of the same
> source code on both linus and NT.
------------------------------
From: Mathias Waack <[EMAIL PROTECTED]>
Subject: Re: 64M buffer passed from user to kernel
Date: 20 Sep 2000 11:04:42 +0200
[EMAIL PROTECTED] (Mario Klebsch) writes:
> There still are some people in this world, who are not using lilo or
> any other booter. E.g Linux boots fine from floppy disk. Any driver,
> which requires the user to routinely pass parameters to the kernel
> IMHO is badly broken. The kernel has to work when no parameters are
> passed!
The kernel will work (eventually). But the driver doesn't. Passing
parameters to the kernel is a well documented feature of Linux, which
can and should be used. There is only one other solution: patching the
kernel. What kind of solution would you prefer? If you think that
kernel parameters are ugly, what do think about kernel patches?
Mathias
------------------------------
From: Mathias Waack <[EMAIL PROTECTED]>
Subject: Re: 64M buffer passed from user to kernel
Date: 20 Sep 2000 11:21:17 +0200
[EMAIL PROTECTED] (Pete Zaitcev) writes:
> Don't be stupid, Lisa. In what respect bigphisarea is "dirtier" than
> using "mem="? Mathias advocates to pull the subtle work of picking at
> mem_start/memory_end inside your driver.
I answered a posting saying you _must_ use bigphysarea just to show
other solutions. I didn't say you _must_ use the mem switch.
> If you do that, you have to
> deal with any bugs, have intricate understanding how the memory is
> allocated, and support multiply kernel revisions. Certainly a well
> defined interface of bigphisarea, tested by numerous developers,
> provides you a better option.
Fine, thats the drawback of the mem switch and the advantages of
the bigphysarea patch. It isn't really serious. Please remember
you can't (eventually) patch already patched kernels, you need a
patch for your exact kernel version and you depend on the
goodwill of the developers. The mem switch is a well documented feature
of the kernel. That's just the opposite point of view. Please don't tell
someone how to do something. Tell her all possibilities and let her
decide. That's the way. I think we agree on that?
Mathias
------------------------------
From: Liaw Yong Shyang <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.development.apps
Subject: Help: Kernel hang/coredump analysis
Date: Wed, 20 Sep 2000 17:35:03 +0800
Hi,
I have midified and recompiled the Linux kernel for my project. I can
reboot from my new kernel image successfully, and it works happily.
However, the system will hang from time to time. How can I debug, as I
could not repeat the bug at my will?? Is it any tool that I can use to
analyse coredump? Any book or article I can read more about coredump
analysis?
I really appreciate if you can help. Thank in advance.
------------------------------
From: [EMAIL PROTECTED] (Casper H.S. Dik - Network Security Engineer)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: 20 Sep 2000 10:52:52 GMT
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
Allin Cottrell <[EMAIL PROTECTED]> writes:
>[EMAIL PROTECTED] wrote:
>> Not having writen any code for X, and not really understanding how the
>> core of X works... I would like to know why, WHY!!!, are not these great
>> features set up as run time loadable modules like the kernel modules of
>> Linux?
>I guess you haven't heard of XFree86 4.0.
Or the Solaris X server (loadable modules since 2.0, I think).
But loadable or not, it doesn't really matter on a paging based
system. Unused code is simply paged out and shouldn't bother
your application.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
------------------------------
From: Marc SCHAEFER <[EMAIL PROTECTED]>
Subject: Re: PC speaker text-to-speech
Date: 20 Sep 2000 07:47:05 GMT
Jerome Corre <[EMAIL PROTECTED]> wrote:
: I was just wondering if their is any way of using the pc speaker to play
: sound? Is their any ready made module (i use the redhat 6.1 kernel) to
There use to be the pcsp driver in 2.0.x as a patch. I don't know if
it still exists on 2.2.x.
: control the device? Is there any application available for linux to do
: text to speech (i am not looking for quality here since the pc speaker
: is gonna be the sound device, but for a small and simple application)
In English, Festival is now free software (BSD or GPL license I think).
Alternatively, there are MBROLA (non-free) and IBM ViaVoice (commercial).
------------------------------
From: [EMAIL PROTECTED] (F. Heitkamp)
Date: Wed, 20 Sep 2000 07:19:35
Subject: How to allocate non cachable driver space?
Reply-To: [EMAIL PROTECTED]
I want to allocate space for a driver.
Not a PCI/ISA card. In fact not on PC architecture.
How do I allocate non cachable space for the I/O.
This will be memory mapped I/O.
Fred
------------------------------
Crossposted-To: comp.os.linux.x,comp.windows.x
From: Aurel Balmosan <[EMAIL PROTECTED]>
Subject: Re: new windowing system
Date: Wed, 20 Sep 2000 11:09:06 GMT
In comp.os.linux.development.system Mario Klebsch <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] writes:
> >Not having writen any code for X, and not really understanding how the
> >core of X works... I would like to know why, WHY!!!, are not these great
> >features set up as run time loadable modules like the kernel modules of
> >Linux?
> Because the client-servar architecture of X is not a feature, but a
> concept. You cannot change the concept of any program, just by loading
> some routines.
I must disagree. The API is the Xlib. If you write a new Xlib that IS the
X-Server X-applications wouldn't notice.
Just a thought.
--
================================================================
Aurel Balmosan | [EMAIL PROTECTED], [EMAIL PROTECTED]
http://gaia.owl.de/~aurel/ |
================================================================
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: 20 Sep 2000 07:35:13 -0400
In article <8qa4u4$f0m$[EMAIL PROTECTED]>,
Casper H.S. Dik - Network Security Engineer <[EMAIL PROTECTED]> wrote:
>But loadable or not, it doesn't really matter on a paging based
>system. Unused code is simply paged out and shouldn't bother
>your application.
<sarcasm target=Solaris>
Especially when swap competes with /tmp for space, right?
</sarcasm>
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: 20 Sep 2000 07:39:31 -0400
In article <[EMAIL PROTECTED]>, Aurel Balmosan <[EMAIL PROTECTED]> wrote:
>I must disagree. The API is the Xlib. If you write a new Xlib that IS the
>X-Server X-applications wouldn't notice.
_If_ your applications use Xlib. Which is almost but not quite mandatory.
Besides, when was the last time you've seen X with one client?
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
------------------------------
From: "Fr�d�ric G. MARAND" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: Wed, 20 Sep 2000 13:54:40 +0200
Did you ever see an application using the X protocol directly without going
through the X library ? I'd be interested in any information about that.
Alexander Viro <[EMAIL PROTECTED]> a �crit dans le message :
8qa7lj$[EMAIL PROTECTED]
> In article <[EMAIL PROTECTED]>, Aurel Balmosan <[EMAIL PROTECTED]>
wrote:
>
> >I must disagree. The API is the Xlib. If you write a new Xlib that IS the
> >X-Server X-applications wouldn't notice.
>
> _If_ your applications use Xlib. Which is almost but not quite mandatory.
> Besides, when was the last time you've seen X with one client?
[...]
------------------------------
From: [EMAIL PROTECTED] (CDM)
Subject: Re: MS Visual Studio -> CodeForge??
Date: Wed, 20 Sep 2000 13:52:56 +0200
VDKBuilder at http://vdkbuilder.sourceforge.net
or check http://www.appwatch.com and search library on
'Development/Environments',
'Development/Tools'.
"Me" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
> I'm a user of Microsoft Visual Studio. I have grown tired of the Microsoft
> way of doing things (e.g. rebooting, hung systems, rebooting, bloatware,
> rebooting, etc.). I want to evaluate a move to Linux for our web-based
> applications and need some direction regarding development environments.
>
> Visual Stuido is nice, to say the least. Project management (read make
file
> management), integrated source control, integrated debugger, etc. are must
> have features. We're in a 12-member development, working on about three
> different projects at any given time. This stuff works great except for
the
> Microsoft problems (did I mention rebooting and hung servers?). And we
can't
> get Visual Source Safe (MS source control attempt) to stay stable for more
> than 90 days or so.
>
> Is there anything like it in Linux? We're currently looking at CodeForge.
So
> far, so good, but would like to consider other options if they are
> available.
>
> Thanks!
>
>
Opinions expressed herein are my own and may not represent those of my employer.
------------------------------
Crossposted-To: comp.os.linux.misc,comp.os.linux.development.apps
Subject: Re: Help: Kernel hang/coredump analysis
From: Andreas K�h�ri <[EMAIL PROTECTED]>
Date: 20 Sep 2000 14:05:23 +0100
In article <[EMAIL PROTECTED]>,
Liaw Yong Shyang <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I have midified and recompiled the Linux kernel for my project. I can
>reboot from my new kernel image successfully, and it works happily.
>However, the system will hang from time to time. How can I debug, as I
>could not repeat the bug at my will?? Is it any tool that I can use to
>analyse coredump? Any book or article I can read more about coredump
>analysis?
>
>I really appreciate if you can help. Thank in advance.
>
Core dumps may be analyzed using e.g. the 'gdb' debugger.
$ gdb -c ./core
This will start 'gdb' and tell you what executable created the core
file (I hope! It does with a small example I'm playing with). From
'gdb' type "file a.out" (where 'a.out' is the name of the executable
that 'gdb' said generated the core file) and then type "where".
/A
--
Andreas K�h�ri, <URL:http://hello.to/andkaha/>. Junk mail, no.
========================================================================
Put a part of GNU in every box: <URL:http://www.gnu.org/>
------------------------------
From: Stefor-6 <[EMAIL PROTECTED]>
Subject: High precision timer needed
Date: Wed, 20 Sep 2000 14:07:04 +0200
I'm looking for a timer function just like times(2), but with higher
precision.
As far as I know the kernel only keeps track of how many jiffies a
process
has used the processor, but that's not accurate enough. So I was
thinking
of augment the task_struct with a field that holds the clock cycle
count for
each process. The problem is that I don't know where it is best to put
the code
that reads the rdtsc register and does the calculations so that I get
the counts
only for the current process. I don't plan to make a difference between
system
time and user time as times(2) does, but the time used by other
processes and
the time used by clock interrupts must not be added to the field in the
struct.
After that I'm planning to make as syscall to return the count field for
the
current process.
Can anyone help me with some hints to where to put my code. I assume
that
it could be done in sched.c, but I'm not sure in which function.
If all this seems like a bad idea or waste of time, please express your
oppinion
why I shouldn't waste my time on doing it. (It already exists, it can't
be done,
just use rdtsc as is in the process instead, etc)
/Stefan
------------------------------
From: [EMAIL PROTECTED] (Casper H.S. Dik - Network Security Engineer)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: 20 Sep 2000 12:15:26 GMT
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
Aurel Balmosan <[EMAIL PROTECTED]> writes:
>I must disagree. The API is the Xlib. If you write a new Xlib that IS the
>X-Server X-applications wouldn't notice.
Sun used to ship something like that: Direct Xlib.
However, it's a pain to keep compatible with standard X lib and
to make it work with all graphics.
But it is doable.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
------------------------------
From: [EMAIL PROTECTED] (Casper H.S. Dik - Network Security Engineer)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: 20 Sep 2000 12:16:18 GMT
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
[EMAIL PROTECTED] (Alexander Viro) writes:
>In article <8qa4u4$f0m$[EMAIL PROTECTED]>,
>Casper H.S. Dik - Network Security Engineer <[EMAIL PROTECTED]> wrote:
>>But loadable or not, it doesn't really matter on a paging based
>>system. Unused code is simply paged out and shouldn't bother
>>your application.
><sarcasm target=Solaris>
>Especially when swap competes with /tmp for space, right?
></sarcasm>
Which OS requires swap to back program text?
None that I know off.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: 20 Sep 2000 08:30:56 -0400
In article <8qa8ab$jh5$[EMAIL PROTECTED]>,
Fr�d�ric G. MARAND <[EMAIL PROTECTED]> wrote:
>Did you ever see an application using the X protocol directly without going
>through the X library ? I'd be interested in any information about that.
Yes.
<chuckle> As a starting point, check one that was on IOCCC. Probably one
of the shortest examples...
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************