Linux-Development-Sys Digest #176, Volume #7 Thu, 9 Sep 99 12:13:57 EDT
Contents:
Re: gcc compiler error (with tty_io.c) (Peter Samuelson)
Re: Flamage - Why? (James Andrews)
Re: survey linux project. (Pasztor Szilard)
Re: LispOS? (Peter Samuelson)
Re: No process cleanup after a core in 2.2.9 (Peter Samuelson)
Re: DMA direct to block device buffers? (Harald Simmler)
Re: Embedded X-server anyone ? ? (Peter Samuelson)
Re: TAO: the ultimate OS (James Andrews)
Re: Flamage - Why? (James Andrews)
Re: DMA direct to block device buffers? (Harald Simmler)
Re: TAO: the ultimate OS (James Andrews)
Re: threads (David Schwartz)
Re: Managing stdin and stdout of new processes (David Schwartz)
Linux + C + 2 serial port (Erol ELISABETH)
Re: mallopt for linux (Wolfram Gloger)
Re: egcs and stropts.h (Wolfram Gloger)
loadkeys/compose ("Bert Douglas")
Re: Embedded X-server anyone ? ? (Chuck Dillon)
INODE Access under kernel 2.2x (Mark Vogelsberger)
Re: egcs and stropts.h (Andreas Jaeger)
Re: DMA direct to block device buffers? (Mark McDougall)
RADIUS Support in Linux ("keith")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: gcc compiler error (with tty_io.c)
Date: 9 Sep 1999 00:28:56 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[<[EMAIL PROTECTED]>]
> I tried to compile kernel 2.3.15 with atm-0.62,but got the following
> error. Can somone give me a hint what went wrong? More details can be
> provided if necessary.
You don't mention the version of gcc you are using (though it seems to
be at least egcs 1.1.1). This is very important, since this looks like
a compiler bug. What does `gcc -v' say?
That said, it could also very well be a hardware problem. Stop
overclocking your CPU and/or your memory ... replace your dead CPU fan
... start regretting the decision to buy non-parity RAM ... take the
price sticker out from under the heat sink of the CPU (brain-dead
vendors have been known to put one there!) ... these kinds of problems
often surface as errors in compute-intensive software such as gcc. See
the famous http://www.bitwizard.nl/sig11/ .
The way to tell a hardware problem from a software problem is to see if
it's repeatable. If it's an actual gcc bug, exactly the same thing
should happen every time. If it's a hardware problem you may only see
it once, or it may stop at different places in the kernel compile each
time.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: James Andrews <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: Flamage - Why?
Date: Thu, 09 Sep 1999 09:15:11 +0000
Graffiti wrote:
> Not to mention the resultant gold is radioactive and unstable.
I find norml gold very unstable, apparently I have to keep putting more
of it on my girlfriends finger or the balance wont be right :-P
James
------------------------------
From: Pasztor Szilard <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.development.apps,linux.dev.gcc,linux.dev.kernel,linux.dev.x11
Subject: Re: survey linux project.
Date: 9 Sep 1999 09:07:09 GMT
In linux.dev.x11 Kim,Taesung <[EMAIL PROTECTED]> wrote:
> Hello!
> We( I and my friends) have plan to make soem application on linux.
> First of all, we want to survey on going project on linux.
> We want to know any kind of projects about linux.
> Where can we find?
> Thanks for regard.
Try an asf player!
None of them exists for Linux, and generally Linux lacks good multimedia
players.
--------------------------------------------------------------
| Egoism is the drug that soothes the pain of stupidity. |
--------------------------------------------------------------
Jordan Rudess Rulez http://www.inf.bme.hu/~silicon
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: LispOS?
Date: 9 Sep 1999 02:39:53 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Harald Arnesen <[EMAIL PROTECTED]>]
> OK, it should shut it down, then. When I would want to move the
> machine to another location, to upgrade the motherboard,...
Yeah, but you probably still want to use
(put 'save-buffers-kill-emacs 'disabled t)
and so forth, at least by default.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: No process cleanup after a core in 2.2.9
Date: 9 Sep 1999 02:45:29 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Tim Roberts <[EMAIL PROTECTED]>]
> The problem is caused by a bug in the Mandrake modifications to the
> 2.2.9 kernel. The solution is to download a virgin kernel source and
> rebuild it.
> Why Mandrake would want to modify the kernel at this level is beyond
> me.
Most distributions distribute modified kernels. They'll put in the
large-file-descriptor patch, arch-specific enhancements that haven't
migrated into Linus's tree yet, more and newer drivers, iBCS2, pcmcia,
stuff like that. And (at least) Mandrake is thinking about devfs.
These patches are supposed to be well tested but obviously bugs do slip
in occasionally.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: Harald Simmler <[EMAIL PROTECTED]>
Subject: Re: DMA direct to block device buffers?
Date: Thu, 09 Sep 1999 10:48:11 +0200
> I'm writing a block device driver for a PCI-based storage device. The
> device incorporates a bus-mastering DMA engine. Basically I have a
> rudimentary version of the driver working, but it's currently
> double-buffering all device transfers by DMAing into/out of a buffer
> alloc'ed with __free_page(), and using memcpy() to transfer to/from
> CURRENT->buffer.
>
> Is there a means by which I can DMA directly to/from the system buffers
> passed into xxx_request() (ie. CURRENT->buffer)? All examples that I've
> seen of DMA (including Rubini) appear to be ultimately passing data back
> into user space, hence the need to allocate a non-cached DMA buffer.
>
> If it *is* at all possible, I of course need to know the physical
> address(es) of the (possibly non-contiguous?) pages that comprise the
> buffer!!! How do I do this - and what can I assume? BTW my DMA engine
> has scatter/gather so I can handle a non-contiguous buffer without too
> much trouble.
Try to check out the following address. There is a kernel pach available
which enables the direct access to the user memory
Harald
=========
eMail: [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Crossposted-To: comp.os.linux.x,comp.windows.x,comp.sys.palmtops.pilot
Subject: Re: Embedded X-server anyone ? ?
Date: 9 Sep 1999 02:32:50 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Nash Aragam <[EMAIL PROTECTED]>]
> Am lookin' for any/all info that might be available on the
> idea/concept/design/implementation of a SMALL_FOOTPRINT X-server for
> use in embedded OSs and embedded/handheld palmtops.
Considering the complexity of the X protocol, I'm not sure even a
bare-bones implementation would be small. I could be wrong.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: James Andrews <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: Thu, 09 Sep 1999 09:45:29 +0000
Method "best" is virtual, so the class cannot be instantiated :-P
James
------------------------------
From: James Andrews <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: Flamage - Why?
Date: Thu, 09 Sep 1999 09:27:37 +0000
Yes, but surely that proves the point I was originally trying to make.
Whilst it may be an unreasonable amount of effort, you laugh and scoff,
but it can be done. Lead into Gold is not a good analagy because we
know enough about chemistry and physics to say that within our *current*
knowledge, there is no simple way to do it. But within computing it
works slightly differently, as I'm sure you are aware. Any process that
can be defined logically can be written on a computer. For any given
logical process, there are an infinite amount of possible software
solutions, given infinite resources. Because of this, many algorithms,
even very commonly used ones, have not been explored entirely within the
current scope. And chances are that for any given algorithm, there will
be a better way of implementing it. For these reasonings, it is never a
foregone conclusion as to the viability of a concept within computing,
sometimes something can be judged as far too processor intensive ahead
of time, but generally you never know. Because of this, we should
discuss conceptual ideas just as that, conceptual. My point all along
is that a perfect sandbox system *is* possible, and in my opinion, not
that difficult to achieve. You also have to remember, we are theorising
a system from the ground up, so literally anything is possible with
enough time and effort, the important factor is how, and thats what I
joined this thread to discuss.
James
------------------------------
From: Harald Simmler <[EMAIL PROTECTED]>
Subject: Re: DMA direct to block device buffers?
Date: Thu, 09 Sep 1999 10:53:13 +0200
>
> Try to check out the following address. There is a kernel pach available
> which enables the direct access to the user memory
Here is the address:
ftp://ftp.sysgo.de/pub/Linux/
------------------------------
From: James Andrews <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: Thu, 09 Sep 1999 09:36:41 +0000
Eh?
Nice technical overview, but if I could beg an answer... why?
Hmm, maybe we missed a previous post in this group.
James
------------------------------
From: David Schwartz <[EMAIL PROTECTED]>
Subject: Re: threads
Date: Thu, 09 Sep 1999 03:42:15 -0700
> >To do this with separate processes means you have the extra overhead
> >associated with maintaining separate address spaces. There is also the
> >overhead associated with synchronization and communications between
> >processes. Threads are essentially a light weight form of multitasking.
>
> Yes, but linux's processes aren't that much more heavyweight than
> threads (on VMS or NT, processes are indeed relatively high overhead).
This is true but irrelevant.
A model of 'one process per connection' that needs to handle ten
connections will _always_ need ten context switches. A multithreaded
program that does _NOT_ use a model of 'one thread per connection' may
be able to handle ten connections without ever switching threads even
once.
DS
------------------------------
From: David Schwartz <[EMAIL PROTECTED]>
Subject: Re: Managing stdin and stdout of new processes
Date: Thu, 09 Sep 1999 02:49:11 -0700
man pipe
man fork
man exec
You need two pipes, one to stuff input into the program and one to take
output from it. So basically you do the following:
1) Create the two pipes.
2) Call 'fork'
3) In the child, close the half of each pipe you're not using and then
'exec' the program you want to run.
4) In the parent, close the half of each pipe you're not using. Then
send the data to the child. Read the child's output from the output
pipe.
5) If you can't tell from the output when the child is done, catch
SIGCHLD/SIGPIPE. They'll tell you.
6) Don't forget to call wait/waitpid so you don't leave a zombie
around.
DS
Kevin Woodward wrote:
>
> Hi All,
>
> I wish to send the contents of unsigned char array to the stdin of
> program and store the programs stdout in another unsigned char array
> without using temp files. The data maynot be NULL terminated. I'm
> using Linux and EGCS.
>
> Any ideas? I assume I should using popen, but none of my ref. manuals
> cover popen... This is only intended to be a stopgap measure until
> native support is added.
>
> Thanks,
>
> Kevin Woodward.
------------------------------
From: Erol ELISABETH <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Linux + C + 2 serial port
Date: Thu, 09 Sep 1999 12:29:51 GMT
I write an application that get information from a GPS on a serial Port
/dev/ttyS0
the application compute this information and send it to the second
serial port
/dev/ttyS1
my problem is that i can't initialise the port the first time i use my
little applicaiton
I have to lunch minicom to setup the serial port ??? (4800 8 N 1) the
1st time i boot my system
after my appli works fine
I want to setup the serial port whith my C prog or someting else whiout
lunching minicom
please help...
------------------------------
From: Wolfram Gloger <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: mallopt for linux
Date: 09 Sep 1999 14:57:04 +0200
[EMAIL PROTECTED] writes:
> IRIX and Solaris have mallopt, an interesting function that enables one
> to alter the behavior of malloc for efficient usage of memory. This
> function is very useful while allocating and deallocating memory very
> frequently as in a database. Is there an equivalent function in Linux?
Yes, and (guess what) it's called mallopt(). However, the options are
not compatible with Irix or Solaris. The malloc implementation found
in Linux should be very efficient for such a broad range of allocation
patterns that manual tuning is _very_ rarely necessary.
Regards,
Wolfram.
------------------------------
From: Wolfram Gloger <[EMAIL PROTECTED]>
Subject: Re: egcs and stropts.h
Date: 09 Sep 1999 15:08:12 +0200
David Grothe <[EMAIL PROTECTED]> writes:
> Can someone explain to me the purpose of egcs putting in place a file
> named /usr/include/stropts.h? This file contains the standard SVR4 type
> user level prototypes for STREAMS constructs. Any attempt to actually
> use them results in the linker error:
>
> warning: getmsg is not implemented and will always fail.
I don't know the purpose of this file other than `reserving' the
interface. But: it definitely has nothing to to with egcs ! There is
no stropts.h file anywhere in gcc-2.95.1, either. It comes from
glibc2. So, if you want to get in touch with the developers on this,
try [EMAIL PROTECTED], and not some compiler list.
Regards,
Wolfram.
------------------------------
From: "Bert Douglas" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: loadkeys/compose
Date: Thu, 9 Sep 1999 08:26:56 -0500
Hi all,
I am reading the info pages on loadkeys and "deadkeys" and diacritic marks and still
have some questions.
Basically I am trying to convert a KBD file from windows. In windows the diacritics
are typed as follows:
type a "dead key" diacritic mark, nothing appears on screen
then either
a) type an acceptable second key, and get a combined diacritic char on screen
b) type an unacceptable second key, get two separate characters on screen
c) type the same diacritic key a second time, and it appears on screen
In windows there can be several separate "dead key" diacritic marks.
However, from what I read in Linux, there can only be one <compose> key. But I
haven't been able to figure out which key (or key
combination) is <compose> on Linux. When I do "dumpkeys" there are a bunch of compose
lines at the end. But I don't see where
<compose> itself is defined.
Questions:
1) what is the <compose> key? How do you know?
2) are you limited to one <compose> key in Linux?
Thanks,
Bert Douglas
------------------------------
From: Chuck Dillon <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.windows.x,comp.sys.palmtops.pilot
Subject: Re: Embedded X-server anyone ? ?
Date: Thu, 09 Sep 1999 09:26:33 -0500
I suggest you look at the RTOS vendors. For example, Microware
(www.microware.com I think) offers an Xserver for their RTOS.
Other vendors do as well I think.
ced
Nash Aragam wrote:
>
> Hi,
>
> Am lookin' for any/all info that might be available on the
> idea/concept/design/implementation of a SMALL_FOOTPRINT X-server for use
> in embedded OSs and embedded/handheld palmtops. Actually, a
> mono-chromatic (mfb and/or cfb8 only) Display Server would be a better
> technical description, but, the same result could be achieved via
> heavy-pruning and porting of the existing XFree86 or the general
> X-distribution code (Linux is one of my target OS's)....
>
> Please send me any info and/or pointers....Thanks very much in advance,
>
> Nash Aragam
> Tech-Source Inc.
> [EMAIL PROTECTED]
> (407)262-7100
--
Chuck Dillon
Senior Software Engineer
Genetics Computer Group, a subsidiary of Oxford Molecular
------------------------------
From: Mark Vogelsberger <[EMAIL PROTECTED]>
Subject: INODE Access under kernel 2.2x
Date: Thu, 09 Sep 1999 16:40:35 +0200
Hi,
at the moment I code a module that hooks the SYS_execve system call. In
the hook I use the open() function on the file the userspace wants to
execute. After opening the file I use
the file structure supplied by the current structure to get information
on the file thats going to be executed.
The problem I have is, that I cannot get the inode of the file ?? I only
get the inode of the path directory (file->f_dentry->d_inode). In kernel
2.0x there was no problem getting the inode of a file : it was a part of
the file structure.
Where can I get the inode of the file in the 2.2x kernel ?
Thanks a lot
------------------------------
From: Andreas Jaeger <[EMAIL PROTECTED]>
Subject: Re: egcs and stropts.h
Date: 09 Sep 1999 16:23:55 +0200
>>>>> Wolfram Gloger writes:
Wolfram> David Grothe <[EMAIL PROTECTED]> writes:
>> Can someone explain to me the purpose of egcs putting in place a file
>> named /usr/include/stropts.h? This file contains the standard SVR4 type
>> user level prototypes for STREAMS constructs. Any attempt to actually
>> use them results in the linker error:
>>
>> warning: getmsg is not implemented and will always fail.
Wolfram> I don't know the purpose of this file other than `reserving' the
Wolfram> interface. But: it definitely has nothing to to with egcs ! There is
Wolfram> no stropts.h file anywhere in gcc-2.95.1, either. It comes from
Wolfram> glibc2. So, if you want to get in touch with the developers on this,
Wolfram> try [EMAIL PROTECTED], and not some compiler list.
This should be [EMAIL PROTECTED] - otherwise I agree
with Wolfram's statement.
Andreas
--
Andreas Jaeger [EMAIL PROTECTED] [EMAIL PROTECTED]
for pgp-key finger [EMAIL PROTECTED]
------------------------------
From: Mark McDougall <[EMAIL PROTECTED]>
Subject: Re: DMA direct to block device buffers?
Date: Fri, 10 Sep 1999 00:45:13 +1000
Harald Simmler wrote:
> > Is there a means by which I can DMA directly to/from the system buffers
> > passed into xxx_request() (ie. CURRENT->buffer)? All examples that I've
> > seen of DMA (including Rubini) appear to be ultimately passing data back
> > into user space, hence the need to allocate a non-cached DMA buffer.
> Try to check out the following address. There is a kernel pach available
> which enables the direct access to the user memory
As I understand it, I'm trying to DMA into *system* buffers, not user
buffers?!? Isn't CURRENT->buffer a system buffer??? I need access to
this buffer - the physical address(es) of each contigous clump and a
guarantee that they're locked in RAM!
Is my basic assumption correct? Since the system is doing read-ahead I'm
guessing that CURRENT->buffer is a *system* buffer?!?
Regards,
--
| Mark McDougall |
| [EMAIL PROTECTED] |
| http://www.zeta.org.au/~msmcdoug |
| Technetium Development Pty Ltd | "Electrical Engineers do it
| [EMAIL PROTECTED] | with less resistance!"
------------------------------
From: "keith" <[EMAIL PROTECTED]>
Subject: RADIUS Support in Linux
Date: Thu, 9 Sep 1999 22:44:21 +0800
Can everyone help ?
I have a project to log the access information of linux user to the
accounting server. I found in Linux-PAM System Administratiors' Guide that
the module 'pam_radius' seems do the same thing. However it is fail to
generate the 'accounting- start' and 'accounting-stop' message from linux
when user login. My setup and testing procedure are as follows:
1. Creat two files 'dictionary' and 'server' in /etc/raddb.
2. Modify the last line of login in /etc/pam.d
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_pwdb.so shadow nullok
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_pwdb.so
password required /lib/security/pam_cracklib.so
password required /lib/security/pam_pwdb.so shadow nullok use_authtok
session required /lib/security/pam_radius.so
3. Then login the root in one of another tty but get the premission denied
4. If add the last line to the original of login
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_pwdb.so shadow nullok
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_pwdb.so
password required /lib/security/pam_cracklib.so
password required /lib/security/pam_pwdb.so shadow nullok use_authtok
session required /lib/security/pam_pwdb.so
session required /lib/security/pam_radius.so
6. Then login 'root' OK but no accounting message send from linux to radius
server.
------------------------------
** 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
******************************