Linux-Development-Sys Digest #976, Volume #6 Tue, 20 Jul 99 08:13:51 EDT
Contents:
soundblaster (Holczhammer Mark)
In syscall? (Jeffrey Moyer)
Re: soundblaster (Gary Lawrence Murphy)
Re: Abit bp6 dual-celeron and dual-display (linux/X11) (Brian Gilman)
Re: HD Requests (Peter Samuelson)
Re: soundblaster ("Ashutosh S. Rajekar")
glibc-2.1.1 setup (fwd) (Sedeer El-Showk)
Re: Why we are still holding on to X Windows (Todd Knarr)
dual Celeron MB blows up constantly! (Brian Gilman)
Re: Bug of GCC (Paul D. Smith)
Re: glibc-2.1.1 setup (fwd) (Andreas Jaeger)
Modifying the Kernel ("fernando Ortega")
FW: awake computer from standby-mode (Gerhard Siegesmund)
Serial device (c language) (root)
Re: How to read/write/format MS-DOS floppy disks??? (Remco WOuts)
Re: Modifying the Kernel (Mark Tranchant)
Re: Why not C++ ([EMAIL PROTECTED])
----------------------------------------------------------------------------
From: Holczhammer Mark <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.hardware
Subject: soundblaster
Date: Tue, 20 Jul 1999 01:31:27 GMT
My X have no voice. No pritty, piing, zoom, badaboum, or anything else.
How can I set it up?
Have anything for soundcards like gmpconfig for mouse under lovely Linux?
squake have no sound too. :-(
Any help can save the word :-)
ps. have any program like soundforge (under MsW9x) for linux or wine can
cooperate with soundforge?? 'Couse my young brother (age 25 :-) like to
change win to linux absolutly, if he can solve this problem.
Cats never eat pinguins :-)
================== Posted via SearchLinux ==================
http://www.searchlinux.com
------------------------------
From: Jeffrey Moyer <[EMAIL PROTECTED]>
Subject: In syscall?
Date: 19 Jul 1999 22:55:06 -0400
I am currently porting some kernel code from x86 to alpha. This code
checks to see if the kernel is currently executing a system call. In order
to do this, it checks orig_eax>=0, eax == one of three values. How would
one do this under alpha? Any help would be appreciated. Thanks in
advance.
Warmest regards,
Jeff
--
Save the whales. Feed the hungry. Free the malloc()s.
-anonymous
------------------------------
From: Gary Lawrence Murphy <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.hardware
Subject: Re: soundblaster
Date: 19 Jul 1999 23:58:13 -0400
Reply-To: [EMAIL PROTECTED]
My guess is
1) You do not have the sound module loaded
cat /dev/sndstat
should show what devices are configured and if none
then check to see if you have sound modules which
need loading
ls /lib/modules/2.0.37/misc (use your version number)
will show all the sound modules (and others)
2) You do not have sound support, or your support is not
set to your soundcard. This would be very strange for a
distribution; almost all include sound support, but perhaps
it is loading the wrong one, or using IRQ 7 instead of IRQ 5
If you are brave enough to fix it yourself (go ahead! it's fun!) Look
in the /docs/HOWTO directory of your Linux CD and find the
Sound-HOWTO, then follow that advice carefully.
--
Gary Lawrence Murphy <[EMAIL PROTECTED]> TeleDynamics Communications Inc
Business Telecom Services : Internet Consulting : http://www.teledyn.com
Linux/GNU Education Group: http://www.egroups.com/group/linux-education/
"Computers are useless. They can only give you answers."(Pablo Picasso)
------------------------------
From: Brian Gilman <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.x
Subject: Re: Abit bp6 dual-celeron and dual-display (linux/X11)
Date: Tue, 20 Jul 1999 00:40:07 -0400
Reply-To: [EMAIL PROTECTED]
Hello!
I just got myself a dual celeron bp6 board and have had nothing but
trouble! Can you give me some more info on your system configuration? I
have dual 400's on the board 256 megs ram and a matrox mystique
board.......I have tried running kernel 2.2.5-2.3.9 and always get kernel
panics! HELP PLEASE!
Brian
Bertrand Renuart wrote:
> Great !!!
> This is exactly what I'm looking for...
> We are using XFree86 and wonder if it supports multiples screens under
> Linux/i386. If so, could someone point me to some documentation ?
>
> Thanks a lot.
> - Bertrand
>
> PS: Hope you enjoy your dual head configuration... This is defintely the
> way to go: we have two eyes isn't it ?
>
> Bryan wrote:
>
> > it works! (I'm impressed) ;-)
> >
> > I have to say, this brand new motherboard seems quite 'compatible'.
> > I've installed a 10/100 ether card (SMC), a tekram scsi ultra2 card
> > (dc390u2w), 2 matrox cards (millennium 1 and 2, both pci) along with 2
> > celeron 433 PPGA chips.
> >
> > I just bought the Metro-X (www.metrolink.com) commercial X-server for
> > $39 (best price for commercial software I've ever seen!) and took a
> > chance with something brand new to me: dual head operation on linux
> > while using a dual-cpu motherboard. live dangerously, I say ;-)
> >
> > so I'm pleased to report that upon initial setup and testing, all
> > seems well. kudos to the metro-X folks - their x-server DID deliver.
> > and the abit dual socket 370 motherboard works beautifully as well.
> >
> > man, this setup rivals my hi-end workstation I used to have at SGI ;-)
> >
> > --
> > Bryan, http://www.Grateful.Net - Linux/Web-based Network Management
> > ->->-> to email me, you must hunt the WUMPUS and kill it.
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: HD Requests
Date: 19 Jul 1999 23:38:20 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Emerson Santana Pardo <[EMAIL PROTECTED]>]
> we want make some metrics on kernel and we need record them in some
> file. the doubt is: can we open a file for write in function
> hd_request?
You can but there are issues with doing that (what process owns the
file descriptor?). Try this instead: publish a /proc file. Keep a
ring buffer and feed the /proc file with it. Then just make a
userspace daemon select() on the /proc file and write your log. I
haven't checked but I think printk/klogd does something like this.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: "Ashutosh S. Rajekar" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: soundblaster
Date: Tue, 20 Jul 1999 15:19:59 +0000
Hello,
On Tue, 20 Jul 1999, Holczhammer Mark wrote:
> My X have no voice. No pritty, piing, zoom, badaboum, or anything else.
> How can I set it up?
> Have anything for soundcards like gmpconfig for mouse under lovely
Linux?
Use sndconfig, you should know your sound card settings..
Thanks,
===================
Ashutosh S. Rajekar
------------------------------
From: Sedeer El-Showk <[EMAIL PROTECTED]>
Subject: glibc-2.1.1 setup (fwd)
Date: Mon, 19 Jul 1999 21:43:51 -0700
Reply-To: Sedeer El-Showk <[EMAIL PROTECTED]>
========== Forwarded message ==========
Date: Mon, 19 Jul 1999 20:38:29 -0700
From: Sedeer El-Showk <[EMAIL PROTECTED]>
Newsgroups: comp.os.linux.setup
Subject: glibc-2.1.1 setup
I'm having trouble setting up glibc-2.1.1. "make install" tries to run
perl, which needs libm.so.5 (I'm using perl version 5.005_03)...but if
"make install" libm.so.5 in my path, it quits with:
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (neccessary after upgrading from
Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are
wrong, libm.so should point to the newly installed glibc file - and
there should be only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
Can someone please help me out with this?
Thanks,
Sedeer
------------------------------
From: Todd Knarr <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Why we are still holding on to X Windows
Date: 20 Jul 1999 04:55:48 GMT
In comp.os.linux.development.system Christopher Browne <[EMAIL PROTECTED]> wrote:
> How, with X, do you accomplish the following task?
> - I need to add access to the font xyz.pfb.
> - I need to add access to this font as a normal user (e.g. - without
> resorting to root access).
> - I need to make this change without needing to restart X, thereby
> shutting down all existing X applications.
Two ways:
If the X server is local to a machine and you have a home directory
there:
1. Put the font file in a directory under your home directory.
2. Add fonts.scale entries as appropriate.
3. Run mkfontdir to create the fonts.dir file.
4. Use xset [+fp|fp+] to add the directory to the X server's
font path.
5. Use xset fp rehash to make sure the X server's list of fonts
is up to date.
If you do not have a home directory on the machine the X server is running
on, but do have access to a machine you can run a font server on:
1. Do steps 1-3 above on the machine you have access to.
2. Create a config file for the font server that names the directory
the font is in.
3. Start the font server.
4. Use xset [+fp|fp+] to add the font server to the font path.
5. Use xset fp rehash to update the font list.
--
Collin was right. Never give a virus a missile launcher.
-- Erk, Reality Check #8
------------------------------
From: Brian Gilman <[EMAIL PROTECTED]>
Subject: dual Celeron MB blows up constantly!
Date: Tue, 20 Jul 1999 00:36:04 -0400
Reply-To: [EMAIL PROTECTED]
Hello all!
Well, I go my abit dual celeron board today and have had nothing but
problems with different kernels.....I wanted to use this board to learn
about smp and programming threads with smp but, it's just not stable
enough.....Sigh......Does anyone know what kernel version is considered
the most *stable* for smp? Thanks in advance!
Sincerely,
Brian Gilman
------------------------------
From: [EMAIL PROTECTED] (Paul D. Smith)
Subject: Re: Bug of GCC
Date: 20 Jul 1999 01:56:46 -0400
Reply-To: [EMAIL PROTECTED]
%% Olav Woelfelschneider <[EMAIL PROTECTED]> writes:
ow> Paul D. Smith <[EMAIL PROTECTED]> wrote:
PDS> "Fixing" this would likely involve some gross, unclean hacks, and
PDS> no one likes a gross, unclean hack.
ow> Nah, don't think so...
ow> See:
ow> ~ wosch@tweety> cpp <foo.c
ow> :5: unterminated string or character constant
ow> [...]
ow> ~ wosch@tweety> cpp --traditional <foo.c
ow> [Runs without error]
But, does cpp --traditional use a gross, unclean hack to make this
happen? And if so, does someone like it?
:)
--
===============================================================================
Paul D. Smith <[EMAIL PROTECTED]> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
===============================================================================
These are my opinions---Nortel Networks takes no responsibility for them.
------------------------------
From: Andreas Jaeger <[EMAIL PROTECTED]>
Subject: Re: glibc-2.1.1 setup (fwd)
Date: 20 Jul 1999 07:51:14 +0200
>>>>> Sedeer El-Showk writes:
> ---------- Forwarded message ----------
> Date: Mon, 19 Jul 1999 20:38:29 -0700
> From: Sedeer El-Showk <[EMAIL PROTECTED]>
> Newsgroups: comp.os.linux.setup
> Subject: glibc-2.1.1 setup
> I'm having trouble setting up glibc-2.1.1. "make install" tries to run
> perl, which needs libm.so.5 (I'm using perl version 5.005_03)...but if
> "make install" libm.so.5 in my path, it quits with:
> The script has found some problems with your installation!
> Please read the FAQ and the README file and check the following:
> - Did you change the gcc specs file (neccessary after upgrading from
> Linux libc5)?
> - Are there any symbolic links of the form libXXX.so to old libraries?
> Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are
> wrong, libm.so should point to the newly installed glibc file - and
> there should be only one such link (check e.g. /lib and /usr/lib)
> You should restart this script from your build directory after you've
> fixed all problems!
> Btw. the script doesn't work if you're installing GNU libc not as your
> primary library!
> Can someone please help me out with this?
The script is just a security check. Please read the glibc2 FAQ and
the glibc2 HowTo and check the above mentioned points.
Your systems seems to be at least partly broken. There's no more help
neccessary than you've got already with the above messages and the
documentation.
Andreas
--
Andreas Jaeger [EMAIL PROTECTED] [EMAIL PROTECTED]
for pgp-key finger [EMAIL PROTECTED]
------------------------------
From: "fernando Ortega" <[EMAIL PROTECTED]>
Subject: Modifying the Kernel
Date: Tue, 20 Jul 1999 09:18:27 +0200
I�d like to modify one of the file of the kernel, for example
/usr/src/linux/net/ipv4/ip_input.c
is it possible to add some lines and modifications to this file , whitout
having to compile the whole kernel?
If so, how can I do it?
Thanks in advance, Fernando Ortega
------------------------------
Date: Tue, 20 Jul 1999 09:29:07 +0200
From: [EMAIL PROTECTED] (Gerhard Siegesmund)
Subject: FW: awake computer from standby-mode
=====FW: <[EMAIL PROTECTED]>=====
Date: Thu, 08 Jul 1999 12:18:01 +0200
Sender: [EMAIL PROTECTED]
From: Gerhard Siegesmund <[EMAIL PROTECTED]>
Newsgroups: comp.os.linux.development.system
Subject: awake computer from standby-mode
Hello all
Is it somehow possible to awake the computer from standby-mode at a
given time? I am using apm -S to put the computer into standby-mode. But
now I want to awake it at 4:00 to run some cronjobs. Is it possible? My
motherboard is a gigabyte ga686bx. I am running Linux 2.2.9.
--
cu
--== Jerri ==--
Homepage: http://www.cip.physik.uni-muenchen.de/~siegesm/
finger [EMAIL PROTECTED] to get PGP Public Key
==============End of forwarded message=========================
---
cu
--== Jerri ==--
Homepage: http://www.cip.physik.uni-muenchen.de/~siegesm/
finger [EMAIL PROTECTED] to get PGP Public Key
------------------------------
From: root <[EMAIL PROTECTED]>
Subject: Serial device (c language)
Date: Tue, 20 Jul 1999 11:20:05 +0200
I'm trying to use a serial device on a pc.
My problem is I want to define a timeout and use it when I have to read
somehting on the serial device.
I have try to use the tcsetattr() function from termios.h library with
the VTIME and VMIN parameters of c_cc attribute, but ot seems not work.
In fact, I have test these three cases :
- MIN > 0 and TIME = 0 : it works, ie when I use the read function, and
there is nothing to read, the function never return
- MIN = 0 and TIME > 0 (TIME = 500) : it doesn't work, ie I use the
read function, there is nothing to read, the function return immediatly
(there is no timeout )
- MIN > 0 and TIME > 0 (TIME = 500) : it doesn't work, ie I use the
read function, there is nothing to read, the function never return.
What I want to do is, when there is nothing te read, the function read
wait until timeout is finish, and then return a wrong value.
If somebody can help quickly.
Thanks
Franck LEHR
------------------------------
Subject: Re: How to read/write/format MS-DOS floppy disks???
From: Remco WOuts <[EMAIL PROTECTED]>
Date: 20 Jul 1999 11:56:25 +0200
[EMAIL PROTECTED] (John McKown) writes:
> On Mon, 19 Jul 1999 14:16:27 GMT, GUAY Dominic <[EMAIL PROTECTED]> wrote:
> >Hi.
> >I need to build a system with support for MS-DOS floppies under Linux. Do
> >any of you know of any good software to do this?
> >thanks,
I guess you don't have mkfs.dos (mkdosfs-0.4-4.i386.rpm) installed. Use
fdformat to format a floppy. Use mkfs.dos to put a dos filesystem on
it. Then mount the disk and read/write to your hearts content.
------------------------------
From: Mark Tranchant <[EMAIL PROTECTED]>
Subject: Re: Modifying the Kernel
Date: Tue, 20 Jul 1999 11:45:48 +0100
Reply-To: [EMAIL PROTECTED]
Well, you have to compile the whole kernel at some point. Once you end
up with object files (.o) for each source file that goes into your
particular configuration of kernel, however, you can simply edit this
source file and re-run "make bzImage" (or whatever) from the source base
directory. Don't re-run "make dep; make clean", or the whole kernel will
get rebuilt again. "make clean" deletes all object files.
Note - "make bzImage" and friends do recomplie a couple of other files
every time. Don't worry about this.
Mark.
fernando Ortega wrote:
>
> I�d like to modify one of the file of the kernel, for example
> /usr/src/linux/net/ipv4/ip_input.c
>
> is it possible to add some lines and modifications to this file , whitout
> having to compile the whole kernel?
>
> If so, how can I do it?
>
> Thanks in advance, Fernando Ortega
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking
Subject: Re: Why not C++
Date: Tue, 20 Jul 1999 11:28:47 GMT
In article <7l6h61$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Don Waugaman) wrote:
> In article <[EMAIL PROTECTED]>,
> Johan Kullstam <[EMAIL PROTECTED]> wrote:
> >[EMAIL PROTECTED] (Don Waugaman) writes:
> >
> >consider a min function in C++ that you wish to templatize
> >
> >template <class X>
> >X min(
> > X a,
> > Y b)
> >{
> > return a < b ? a : b;
> >}
> >
> >how do you use this for classes for which < is not defined? how
would
> >you substitute another definition of < if two less-than concepts
would
> >make sense for a certain class? perhaps you could pass a function.
> >but now < and the alt_less_than function would take different
syntaxes
> >and hence not work like
> >
> > min(a,b,<) and min(a,b,alt_less_than)
>
> You would use a functor (an object that encapsulates a function).
> This is the exact example of how min is defined in the SGI STL:
>
> template <class T>
> inline const T& min(const T& a, const T& b) {
> return b < a ? b : a;
> }
>
> template <class T, class Compare>
> inline const T& min(const T& a, const T& b, Compare comp) {
> return comp(b, a) ? b : a;
> }
>
> The first example uses the built-in < operator, so you can use that
for
> classes for which defining '<' makes sense. If you need to compare
two
> classes but not use the built-in operator, either because you prefer
not
> to use operator overloading or because you have a different ordering
> scheme in a different context, you can use the second function.
>
> You can write a CompareStrangeKeys struct for every different sort
> criteria over your class you can think of - each one just overloads
> its own operator() function and you're off to the races.
>
> Now that I think of it, you could do this a little differently:
>
> template <class T>
> class less {
> public:
> bool operator()(T const& a, T const& b) { return a < b; };
> };
>
> template <class T, class Compare = less<T> >
> inline const T& min(T const& a, T const& b) {
> Compare comp;
> return comp(a, b);
> }
>
> So you would have
> StrangeClass a(arguments1);
> StrangeClass b(arguments2);
> a = min(a, b);
> a = min<StrangeClass, StrangeClass::CompareStrangeKeys>(a, b);
>
The most beatiful approach, in my opinion, is to use what the standard
library uses, which is predicates. The approach is just slightly
different from your last one:
template <class T> struct less : public binary_function<T, T, bool> {
bool operator() (const T& x, const T& y) const {return x<y; }
};
template <class T>
inline const T& min(T const& a, T const& b) {
less comp;
return comp(a, b) ? a : b;
}
Now we specialize less for our class Strange
template<> struct less : public binary_function<Strange, Strange, bool>
{
bool operator() (const Strange& x, const Strange& y) const {return
x.strangeLessThan( y ); }
};
Which would look like:
main
{
Strange x;
Strange y;
Strange m = min(x,y);
int a, b;
int c = min(a,b)
...
}
The application programmer will only have to worry about specializing
less for the Strange class, nothing else. The main code is simple,
elegant, no extra run-time costs!
Richard Glanmark
[EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
** 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
******************************