Linux-Development-Sys Digest #384, Volume #8 Mon, 1 Jan 01 17:13:16 EST
Contents:
Re: removing mouse causes Linux to crash/hang. kernel 2.4 (Robert Redelmeier)
Re: Makefile question (The Ghost In The Machine)
Re: Help with mounting new filesystem coding please... (Juha Laiho)
Re: socket programming in c++ ("D. Stimits")
How to add a kernel system call ?? (William Huang)
Re: Reading Linux file system from a Win 95 App. ("Gene Heskett")
getpwuid() (Michael Harris)
Re: ioctl not linked to anything? (Philip Armstrong)
Re: getpwuid() ("Peter T. Breuer")
Re: smp and gcc ("Japie")
Re: smp and gcc ("Japie")
Error compiling gcc 2.95.2 ("Christian Lescuyer")
----------------------------------------------------------------------------
Date: Sun, 31 Dec 2000 11:12:47 -0600
From: Robert Redelmeier <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: removing mouse causes Linux to crash/hang. kernel 2.4
Kasper Dupont wrote:
> found that the keyboard driver used under
> DOS detects the keyboard being pluged in
> makes a beep and updates the keyboards
> state.
>
> But if this should not be possible why is
> it that DOS supports it?
Just because something isn't recommended doesn't
mean that MS-DOS won't do it :)
Actually, I doubt DOS has anything to do with it,
the beep is more probably in your machine's BIOS.
The kbd controller probably generates some spurious
int 9's when [dis]connected. Your mobo has BIOS code
to detect and reinitialize the kbd. It may even have
"self-healing" fuses. But Linux replaces all
of BIOS and doesn't have this re-init code.
-- Robert
------------------------------
From: [EMAIL PROTECTED] (The Ghost In The Machine)
Subject: Re: Makefile question
Date: Sun, 31 Dec 2000 22:57:21 GMT
In comp.os.linux.development.system, Mikael Chambon
<[EMAIL PROTECTED]>
wrote
on Wed, 29 Nov 2000 14:35:48 -0600
<903pd2$4n1$[EMAIL PROTECTED]>:
>The program I am trying to compile need two others objects in two differents
>directories,
>so I wrote 3 rules in my Makefile:
>
>toto :
> (cd ../../toto;make all)
>
>titi :
> (cd ../../titi;make all)
>
>all :
> toto
> titi
> $(NAME)
>
>
>OF course name is the main program, the problem is that when I type " make
>all", only toto is compile,
>does someone has a trick for me...
>
>Thanks ..
Easy: put the rules for 'all' at the top of the makefile. :-)
>
>
>Mikael
>
>
--
[EMAIL PROTECTED] -- insert random misquote here
up 92 days, 22:57, running Linux.
------------------------------
From: Juha Laiho <[EMAIL PROTECTED]>
Subject: Re: Help with mounting new filesystem coding please...
Date: 31 Dec 2000 14:01:31 +0200
spicerun <[EMAIL PROTECTED]> said:
>I'll probably will hate myself when you guys point out my obvious error,
>but I've been looking
>at this for some and pulling out my hair.
>
>I am trying to make the filesystem modules for an unknown OS
>(Microware's OS9000). I have
>gotten my code to successfully register itself with the kernel
>(2.4.0smp-test12) upon the insmod. But my problem
>is that everytime I try the mount ("mount -t os9000 /dev/fd0
>/mnt/os9000), I keep getting a
>kernel oops.
Have you already read /usr/src/linux/Documentation/oops-tracing.txt?
It might give you some useful information.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a- C++ UH++++$ UL++++ P+@ L+++ E(-) W+$@ N++ !K w !O
!M V PS(+) PE Y+ PGP(+) t- 5? !X R tv--- b+ DI? D G e+ h--- r+++ y+
"...cancel my subscription to the resurrection!" (Jim Morrison)
------------------------------
Date: Sun, 31 Dec 2000 17:30:47 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: socket programming in c++
Sebastian Rohde wrote:
>
> I need to mak a programme which is able to handle various network connections
> at once. I found a guide which set me on the right path but everything i know
> now is c stuff. So my question is whether there are any c++ classes which
> might be of some help for me.
>
> For i am new to unix programming i hope somebody could point me into the right
> direction. Thnx
>
> Sebastian Rohde
> [EMAIL PROTECTED]
I haven't tried it out, but there is a library set that might be of
interest:
http://sourceforge.net/projects/cplusplus/
It is labelled "Common C++ Libraries".
------------------------------
From: William Huang <[EMAIL PROTECTED]>
Subject: How to add a kernel system call ??
Date: 1 Jan 2001 03:07:28 GMT
I am learning linux kernel programming recently, and want to add system
call in my kernel. But I don't how to start it. Any body can give me some
related example code ??
thanks :)
------------------------------
Date: 31 Dec 2000 13:15:56 -0500
From: "Gene Heskett" <[EMAIL PROTECTED]>
Subject: Re: Reading Linux file system from a Win 95 App.
Gene Heskett sends Greetings to smostafak ;
> In The Name of GOD
> Hi, I want to write windows application which should read a floppy
> formatted with Linux file system and copy a file from floppy to hard
> disk formatted with FAT File System
> I don't know whether i can access the floppy disk formatted with
> another file system using Win32 API or i need Lower level of access
> (e.g, VXD access), If so, From where i should start?
> Many thanks
> Mostafa Kalantar
>From Winders, I don't think thats possible, but I could be wrong, not
being a winders person.
>From linux, its a piece of cake as long as the floppy and the winders
partitions are mounted, just cp it, or run mc and copy it. Any
translations required are more or less automaticly done by the
filesystems.
Cheers, Gene
--
Gene Heskett, CET, UHK |Amiga A2k Zeus040, Linux @ 400mhz
email gene underscore heskett at iolinc dot net
#Amiga based X10 home automation program EZHome, see at:#
# <http://www.thirdwave.net/~jimlucia/amigahomeauto> #
ISP's please take note: My spam control policy is explicit!
#Any Class C address# involved in spamming me is added to my killfile
never to be seen again. Message will be summarily deleted without dl.
This messages reply content, but not any previously quoted material, is
� 2000 by Gene Heskett, all rights reserved.
--
------------------------------
From: Michael Harris <[EMAIL PROTECTED]>
Subject: getpwuid()
Date: Mon, 01 Jan 2001 06:20:24 GMT
Im making a minimal linux system from scratch. It's based on binaries
from redhat 7.0.
shutdown, halt, and passwd will not function properly.
I've traced the problem to a function called getpwuid() in the glibc
library.
It's returning a NULL, instead of "struct passwd *"
I don't have a clue what the problem is, as the manpages only say that i=
t
returns NULL in the event of an error. My configuration seems to be
complete, and all the libraries seem to be there.
Does anybody have any ideas?
Thanks,
Mike
------------------------------
From: [EMAIL PROTECTED] (Philip Armstrong)
Subject: Re: ioctl not linked to anything?
Date: 31 Dec 2000 17:00:04 -0000
In article <Pine.GSO.4.21.0012311504190.21897-100000@acms23>,
Guennadi V. Liakhovetski <[EMAIL PROTECTED]> wrote:
>Thanks to all who replied! The great thing is that all the answers are
>different!:-)
>
>Well, I tried to find the actual definition of the ioctl() function in
>libc, but so far failed - only found its declaration in sys/ioctl.h. To
>save me some time and work - could anybody give me a hint? Or is it
>weak_alias and __ioctl that do the job?
ioctl() is a kernel syscall.
So that you can override these functions in glibc, the function which
makes the syscall is __ioctl() , which will usually be called by the
ioctl() function. ioctl() will be a weak symbol which you can
interpose with a function of your own devising if you really wanted
to.
All __ioctl() does is to call the kernel entry point for the ioctl
syscall with the file handle in question as an argument; all the
'grunt work' for a particular ioctl is carried out inside the relevant
driver for the filesystem node which that particular file descriptor
is attached to at the time.
HTHs some.
Phil
--
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: getpwuid()
Date: Mon, 01 Jan 2001 10:35:04 GMT
Michael Harris <[EMAIL PROTECTED]> wrote:
> I've traced the problem to a function called getpwuid() in the glibc library.
> It's returning a NULL, instead of "struct passwd *"
> I don't have a clue what the problem is, as the manpages only say that it
> returns NULL in the event of an error. My configuration seems to be
> complete, and all the libraries seem to be there.
> Does anybody have any ideas?
Strace the call.
Probably you don't have host.conf, or nsswitch.conf or PAM.
Peter
------------------------------
From: "Japie" <[EMAIL PROTECTED]>
Subject: Re: smp and gcc
Date: Mon, 01 Jan 2001 18:43:47 +0100
In article <[EMAIL PROTECTED]>, "Pat Shelton"
<[EMAIL PROTECTED]> wrote:
> It depends on what you mean. You don't have to compile a program for
> SMP, Linux supports SMP so different tasks will run in parallel.
Yes I saw that in my cpumon. but is that optimal?
I was wondering if a special smp-compiled version of kde should run
faster than a non-smp one (on a smp-machine)
Or should smp-specific funktions already exist in the sources?
> The only compiler to support parallel
> code is Fortran and there is Fortran 90, 95, and HPF. Parallel compilers
> are available for Linux but they are not free. Check out the NAS
> compiler, Portland Compiler, etc. Search the web for this stuff.
Are those C-compilers and can I use them instead of gcc?
--
Groetjes Japie
.~.
/ V \
/( _ )\
^ ^
------------------------------
From: "Japie" <[EMAIL PROTECTED]>
Subject: Re: smp and gcc
Date: Mon, 01 Jan 2001 22:48:05 +0100
In article <[EMAIL PROTECTED]>, "Pat Shelton"
<[EMAIL PROTECTED]> wrote:
> It depends on what you mean. You don't have to compile a program for
> SMP, Linux supports SMP so different tasks will run in parallel.
Yes I saw that in my cpumon. but is that optimal?
I was wondering if a special smp-compiled version of kde should run
faster than a non-smp one (on a smp-machine)
Or should smp-specific funktions already exist in the sources?
> The only compiler to support parallel
> code is Fortran and there is Fortran 90, 95, and HPF. Parallel compilers
> are available for Linux but they are not free. Check out the NAS
> compiler, Portland Compiler, etc. Search the web for this stuff.
Are those C-compilers and can I use them instead of gcc?
--
Groetjes Japie
.~.
/ V \
/( _ )\
^ ^
------------------------------
From: "Christian Lescuyer" <[EMAIL PROTECTED]>
Subject: Error compiling gcc 2.95.2
Date: Mon, 1 Jan 2001 22:57:48 +0100
I am trying to compile gcc 2.95.2 on linux RedHat 7.0 box. I'm having a
compilation error in libio/indstream.cc:
in method struct streampos indirectbuf::seekof(long long int, ios::seek_dir,
int = 3)
line 82: 'struct streampos' used where a 'int' was expected
line 85: 'struct streampos' used where a 'int' was expected
line 87: 'struct streampos' used where a 'int' was expected
line 89: conversion from int to non-scalar type 'streampos' requested.
The compiler is gcc 2.96.69 (or 64, can't remember). I don't think this is
the problem, though, because the error appears in stage 2 of a 'make
boostrap'. If I understand correctly, at that time, a first version of
2.95.2 is used to recompile itself.
I can't imagine that gcc is not able to compile itself... but then I can't
imagine what the problem can be. Any idea?
Christian Lescuyer
------------------------------
** 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 by posting to the
comp.os.linux.development.system newsgroup.
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
******************************