Linux-Development-Sys Digest #641, Volume #7      Wed, 1 Mar 00 12:13:19 EST

Contents:
  free_irq when sharing (Arnaud Westenberg)
  [Q] How to change the max. amount of open files ([EMAIL PROTECTED])
  Re: BFD: how do I get source-line of EIP? (Henning)
  Re: complex math in a device driver (Etienne Lorrain)
  Re: Counting byte traffic of modem (Etienne Lorrain)
  Re: Problem with SIGALRM and rad() from a pipe ("John Agnew")
  ANN: POSIX and Single UNIX Spec V3 draft 3 now available (Andrew Josey)
  Re: GCC and EGCS, SuSE say they can co-exist, I don't see how (Martin von Loewis)
  Re: How debug linux modules (Vicente Aurelio Esteve Lloret)
  HELP second adapter net inst ("Raphael REPOSO")
  Re: [Q] How to change the max. amount of open files ([EMAIL PROTECTED])
  no inverting using VESA-FBCon (Thomas Gaertner)
  Re: Struct size and allocate problem! need help. (Bernd Strieder)
  Kernel pauses randomly ("Mr. Oogie Boogie")
  ANSI color sequences ([EMAIL PROTECTED])
  Electric Fence for C++ ??? (Anes Lihovac)
  Re: Electric Fence for C++ ??? (Kaz Kylheku)
  Re: ANSI color sequences (Fabrice Peix)
  Re: bug: same dir content after changing disks (robert david merithew)
  Re: Binary compatibility: what kind of crack are they smoking? (Mario Klebsch)
  Re: Binary compatibility: what kind of crack are they smoking? (Mario Klebsch)

----------------------------------------------------------------------------

From: Arnaud Westenberg <[EMAIL PROTECTED]>
Subject: free_irq when sharing
Date: Wed, 01 Mar 2000 08:48:58 +0100

Hi everybody,

What is the correct way to check if an interrupt can be freed when it is
shared amogst multiple devices handled by one module?

I found GET_USE_COUNT in module.h, but it is not longer used?

Thanks

Arnaud

------------------------------

From: [EMAIL PROTECTED]
Subject: [Q] How to change the max. amount of open files
Date: Wed, 01 Mar 2000 08:46:04 GMT

Hi..

can anyone point me to the source file, which i would need to change in a
SuSE Linux Distribution, in order to increase the maximum open files allowed
? I need to increase this value, since some applications (like SQUID) handle
too much open files for the system right now, which causes SQUID (e.g.) to
stop working. You would do me a favor, if you could not only respond to the
forum, but also to my email address, since i only can check the forum via
DejaNews.

tia,
juergen


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Henning <[EMAIL PROTECTED]>
Subject: Re: BFD: how do I get source-line of EIP?
Date: Wed, 01 Mar 2000 10:19:05 +0100



David Wragg schrieb:
> 
> Henning <[EMAIL PROTECTED]> writes:
> > what do I have to do to retrieve the filename and lineno by given eip?
> >
> > I have executable name.
> 
> You probably ought to look at the source for the addr2line utility
> from binutils, which does exactly this.

I tried this, but I found no lineno-info in any section.
The object file contains, but the shared library doesnt.
How do I have to link to get this?

------------------------------

From: Etienne Lorrain <[EMAIL PROTECTED]>
Subject: Re: complex math in a device driver
Date: Wed, 01 Mar 2000 09:31:42 +0000

Robert Redelmeier wrote:
> Ouch!  While Linux might not do FSAVE / FRSTOR on every interrupt
> and kernel entry for obvious performance reasons, AFAIK there's
> nothing to stop you from adding this pair around your bottom-half
> code and FPUing away to your hearts content.

  IHMO, you do not need only that: you have to manage the
 IRQ13/exception 16 that may be generated by an external
 (user space) software which has just been preempted, and
 which was doing FPU computation producing "Not A Number" or
 "out of bound" calculus. Same, if you enable FPU exceptions,
 you have to modify the kernel to handle those _after_ your
 driver is exited.

  Have a good day,
  Etienne.

------------------------------

From: Etienne Lorrain <[EMAIL PROTECTED]>
Subject: Re: Counting byte traffic of modem
Date: Wed, 01 Mar 2000 09:43:32 +0000

Peter Van Grootven wrote:
> 
> Hi there, I'm looking for source code (C) or info on counting the bytes
> received and transferred of a working/active modem.
> 
> Many thanks and regards, Peter.

cat /proc/tty/driver/serial

------------------------------

From: "John Agnew" <[EMAIL PROTECTED]>
Subject: Re: Problem with SIGALRM and rad() from a pipe
Date: Wed, 1 Mar 2000 10:43:42 -0000

Thanks to all for the adivce - seems like sigaction() is the way to go on
Linux.



------------------------------

From: Andrew Josey <[EMAIL PROTECTED]>
Subject: ANN: POSIX and Single UNIX Spec V3 draft 3 now available
Crossposted-To: 
comp.std.misc,gnu.misc.discuss,comp.unix.programmer,comp.programming.threads,comp.realtime,comp.os.linux.development.apps
Date: Wed, 01 Mar 2000 12:18:09 GMT

Draft 3 of the joint revision to POSIX and the Single UNIX Specification V3
is now available for review. To join the review group and download the
specifications see http://www.opengroup.org/austin/ (The Austin Group
web site). The new  draft merges XNS5.2, 1003.1d, 1003.1j,  1003.1a,
1003.2b and 1003.2d (sockets, advanced/additional realtime, threads,
symlinks for utilities etc).

-- 
Andrew Josey, #include <disclaimer.h> 
Austin Group Chair, The Open Group.
http://www.unix-systems.org

------------------------------

From: Martin von Loewis <[EMAIL PROTECTED]>
Subject: Re: GCC and EGCS, SuSE say they can co-exist, I don't see how
Date: 01 Mar 2000 14:13:18 +0100

Markus Kossmann <[EMAIL PROTECTED]> writes:

> If you use the switch -V2.7.2.3 the egcs gcc frontend will run the
> gcc-2.7.2.3 backend.
> 
> To compile the kernel, edit the toplevel kernel Makefile and add that
> switch to the line 
> CC      =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)

Alternatively, after installing 2.7.2.3, you can rename the front-end
to, say, kgcc. Then you install egcs, and 'gcc' will be egcs; 'kgcc'
will continue to be 2.7.2.3. If you set CROSS_COMPILE to 'k', you
don't even need to edit the Makefile - but you'll also need 'kas' and
'kld'.

Regards,
Martin


------------------------------

From: [EMAIL PROTECTED] (Vicente Aurelio Esteve Lloret)
Subject: Re: How debug linux modules
Date: 1 Mar 2000 13:55:18 GMT

In article <38ba7291$0$[EMAIL PROTECTED]>,
   "KPG" <[EMAIL PROTECTED]> wrote:
>I've been writing on a standalone LINUX system and source level debugger. If
>you're interested I'll send you a BETA copy. You will need a monochrome
>(HERCULES) card and monitor though.

 I've been working in a ring0-linux-kernel-debugger , it can execute kernel 
step-by-step and  write breakpoints, could you send me your beta to compare, 
please????.
   [EMAIL PROTECTED]

WHy do your beta only works with monochrome????? do you write directly in 
0xb0000 ???????

>Regards,
>
>Klaus P. Gerlicher
>Diamond/S3
>
>Hernan <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> i want learn how to write linux network devices drivers, so i want trace
>> a module to look how it work, if any body know how it work i apreciate
>> your help Thanks Hernan
>
>

------------------------------

From: "Raphael REPOSO" <[EMAIL PROTECTED]>
Subject: HELP second adapter net inst
Date: Wed, 1 Mar 2000 14:58:53 +0100

Hi all,

Im trying to install a second network interface on my computer.
Card is ACCTON EN1666 - NE2000
Kernel is 2.2.13 including NE2000 compatibl network driver.

At boot time,  I get
...
kernel : eth0 ...
[OK]
...
Bringing up interface eth0 [OK]
Bringing up interface eth1
Delaying eth1 initialization [FAILED]

It seems the kernel doesn't detect the adapter !
And then eth1 init fails.


ifconfig -a replies :
eth0 : <ALL INFOS>
lo : <ALL INFOS>
But nothing about eth1 !

ifup eth1 <ALL PARAMETERS> replies :
eth1 : unknown interface



Any idea ?
Thanks










------------------------------

From: [EMAIL PROTECTED]
Subject: Re: [Q] How to change the max. amount of open files
Date: Wed, 01 Mar 2000 14:23:01 GMT

In article <89ilcc$8jt$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> Hi..
>
> can anyone point me to the source file, which i would need to change
in a
> SuSE Linux Distribution, in order to increase the maximum open files
allowed
> ? I need to increase this value, since some applications (like SQUID)
handle
> too much open files for the system right now, which causes SQUID
(e.g.) to
> stop working. You would do me a favor, if you could not only respond
to the
> forum, but also to my email address, since i only can check the forum
via
> DejaNews.
>
>

To extent those values is much easier, just:

echo $NEW_VALUE > /proc/sys/file-max
echo $NEW_VALUE > /proc/sys/inode-max

You will find lots of other interesting info in /proc, like:
/proc/interrupts
/proc/ioports
/proc/dma
/proc/<processID>/...

Hope it helps


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Thomas Gaertner <[EMAIL PROTECTED]>
Subject: no inverting using VESA-FBCon
Date: Wed, 01 Mar 2000 15:34:09 +0100

I've some problems  using the VESA-FB Console.
I want invert the colors of my terminal. Kernel-Doc says there is an
option "video=vesa:invers" but using this option in my lilo.conf or at
the kernel-Prompt has non effect. The other options like "ypan" are
working
(seen in boot.msg)

Some idea?
hardware: Sony Notebook with NeoMagic 256AV
thx...
-- 
 Thomas G�rtner
 Brandenburg Technical University at Cottbus
 Student Assistant at the Software and Systems Engineering Group
--
 >> There is not one truth only! <<
--
 PGP-Public-Key
http://www.informatik.tu-cottbus.de/~tgaertne/html2/public-pgp-2048.07291999.asc
================================================================================

------------------------------

From: Bernd Strieder <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,comp.os.linux.development.apps,comp.unix.sco.misc,comp.unix.sco.programmer,comp.unix.unixware.misc,tw.bbs.comp.linux
Subject: Re: Struct size and allocate problem! need help.
Date: Wed, 01 Mar 2000 16:40:07 +0100

Jaron wrote:
> 
> Hi,
>     I encounter a compiling program as below:
> 
>     struct    a {
>         unsigned char    a1;
>         unsigned char    a2;
>         unsigned short    a3
>         unsigned short    a4
>         unsigned long    a5;
>     };
> 
> the structure size must be 10 but use sizeof print out is 12...
> I know this is the alignment problem of structure ..
> But how to resolve it ?
> I need to know the compiler option like -xx ?
> do anyone konw about this ?

According to the info files of gcc you can try

struct    a {
  unsigned char    a1;
  unsigned char    a2;
  unsigned short    a3
  unsigned short    a4
  unsigned long    a5;
} __attribute__ ((packed));

This packed attribute is recursively applied to the struct members, so
take care if you have other struct members.

This is something that cannot be solved by compiler options, since this
would hold for all of the structures, ant thus would change the ABI,
preventing you from calling libc functions with structures. If you have
to write portable software, then you will have to look how other
compilers achieve this and work with macros, a la:

#ifdef __GNUC__
#define PACKED_ATTRIBUTE __attribute__ ((packed))
#else
#define PACKED_ATTRIBUTE
#endif

struct    a {
  unsigned char    a1;
  unsigned char    a2;
  unsigned short    a3
  unsigned short    a4
  unsigned long    a5;
} PACKED_ATTRIBUTE;

HTH

Bernd

------------------------------

From: "Mr. Oogie Boogie" <[EMAIL PROTECTED]>
Subject: Kernel pauses randomly
Date: Wed, 01 Mar 2000 11:06:24 -0500

Hello,

I've been looking for a solution to this problem but have been unable
to find
one. I hope somebody here has some ideas. 

Here is the problem. I have a Mighty Mite card pc running Debian
2.2.13. There
is no hard drive, floppy drive, monitor, keyboard or mouse attached.
It is
controlled via the serial line and it boots up from a flash disk. At
seemingly
random times the machine pauses for about four seconds. It's getting
real
annoying. 

I believe it has to do with the lack of a hard drive because the
pauses occur
even when it has a monitor, keyboard and mouse attached but I have
been unable
to find a fix. 

If anyone knows what is causing this and what I can do to fix it or
even any
helpful suggestions please email me at rpreston at mitre.org 

Thanks, 

-Ralph A. Preston 
The MITRE Corporation 
202 Burlington Road 
Bedford, MA 01730

------------------------------

From: [EMAIL PROTECTED]
Subject: ANSI color sequences
Date: Wed, 01 Mar 2000 16:14:23 GMT

Hi All

I use sequences, like "\033[31;49;27;1m" quite a lot.

With most terminal settings "\033[22m" makes a color light, and
"\033[1m" makes it darker.

Using a different user (having different settings) and the same terminal
program (kvt, xterm) the colors do not appear as light/dark, but
as normal/bold.

How can I get the colors be displayed as light/dark?

Many thanks
Joerg
(Irgei)


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Anes Lihovac <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Electric Fence for C++ ???
Date: Wed, 01 Mar 2000 17:42:46 +0100

Hi !

I am searching for a Library which like EFENCE
but for C++ !!!

Any suggestion ???
Thanks
Ciao
Anes

------------------------------

From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Electric Fence for C++ ???
Reply-To: [EMAIL PROTECTED]
Date: Wed, 01 Mar 2000 16:40:53 GMT

On Wed, 01 Mar 2000 17:42:46 +0100, Anes Lihovac <[EMAIL PROTECTED]> wrote:
>Hi !
>
>I am searching for a Library which like EFENCE
>but for C++ !!!

Efence supports C++ if your operators new and delete are
implemented in terms of malloc and free.

If they are not you can write your own overloads which are.

------------------------------

From: Fabrice Peix <[EMAIL PROTECTED]>
Subject: Re: ANSI color sequences
Date: Wed, 01 Mar 2000 17:48:26 +0100

[EMAIL PROTECTED] wrote:
> 
> Hi All
> 
> I use sequences, like "\033[31;49;27;1m" quite a lot.
> 
> With most terminal settings "\033[22m" makes a color light, and
> "\033[1m" makes it darker.
> 
> Using a different user (having different settings) and the same terminal
> program (kvt, xterm) the colors do not appear as light/dark, but
> as normal/bold.
> 
> How can I get the colors be displayed as light/dark?
> 
> Many thanks
> Joerg
> (Irgei)
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.
for portability you must use the lib ncurses.

------------------------------

Subject: Re: bug: same dir content after changing disks
From: [EMAIL PROTECTED] (robert david merithew)
Date: Wed, 01 Mar 2000 16:52:21 GMT

I am having the same kind of problem with vfat floppies and zip disks
using SuSE 6.3 (which, I believe, is kernel 2.2.13).

I read a floppy or zip on the linux system, unmount it, add files to
it using a dos machine, then remount it under linux, and the new files
do not show up.  Often, after unmounting it, then rereading it under
dos/win98, I find that the directory entries for the files are
missing, but the space they occupy is still used.  Win98's scandisk
finds the missing files.

So, linux is damaging the (vfat) filesystem.

This is clearly a bug, not a feature (at least for removable media).

This makes my linux machine totally useless to me (I must use a
dos-based machine at work to acquire the data which I hope to analyze
under linux).

I am amazed that SuSE would ship a system that does this, and am
surprised that I can't find any mention of it on their website.

Does anyone know the latest version of the kernel that doesn't have
this problem?  I need to downgrade to it asap!

thanks,
--
  Robert Merithew ([EMAIL PROTECTED])           _______________    __o
  University of Illinois at Urbana-Champaign   ______________     -\<,
  Dept. of Physics                                          ......O/ O
--



Ul f Dambacher <[EMAIL PROTECTED]> writes:

>I found a strange problem with my floppy or my zip and the vfat
>filesystem.
>When I mount disk 1 I can write to it and read from it. Then I unmount
>it and insert another medium  - disk 2 -  and mount it,
>in some occasions (unfortunately I can not force this error)
>I see the the dir contents of disk 1.  If now I write to this disk, this
>dir contents is written
>and thereby the filesystem is corrupted.



------------------------------

From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: Binary compatibility: what kind of crack are they smoking?
Date: Wed, 1 Mar 2000 10:41:21 +0100

[EMAIL PROTECTED] (J.H.M. Dassen (Ray)) writes:

>The X libraries compiled against libc5 and libc6 both use 6.1 as their
>soversion. This doesn't cause problems as long as your X applications are
>not linked with a hardwired library search path (-rpath), allowing ldso to
>find the right libc to load them against.

It would be not problem, too, if all applications were using rpath for
X11 libraries (ofcourse if must be different for libc5 and libc6 based
X11 libraries).

>On Debian, X applications aren't
>compiled -rpath. On at least some versions of Red Hat, X applications are
>compiled -rpath, causing problems. This e.g. caused problems with Red Hat's
>libc5-compiled CDE on libc6 Debian. This problem, once identified, is fairly
>easy to fix: edit the binaries to have the RPATH start with the NULL
>character.

Switching from rpath to LD_LIBRARY_PATH (/wetc/ld.so.config is nothing
else, but it does not reside in the environment) is not the
sollution. LD_LIBRARY_PATH is evil, and will not be any more good,
when required only because the libs are not named correctly.

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: Binary compatibility: what kind of crack are they smoking?
Date: Wed, 1 Mar 2000 10:46:26 +0100

[EMAIL PROTECTED] (Stephen Harris) writes:

>Mario Klebsch ([EMAIL PROTECTED]) wrote:

>: When writing a Program for e.g. Linux 2.2.13, I cannot rely on

>You are writing code to a kernel version?

The kernel is the thing called linux, so 2.2.13 is a linux version.

>Sorry, the OS is bigger than
>just the kernel.

I know, bit Linux isn't. :-( That is what I am arguing the last
days. And IMHO Linux better becomes an OS.

>: Since Solairs is an operating system, specifying its version does
>: specify the version (and th4e interface) of all shared libraries,

>Ah - so you do agree with my point.  RedHat 6.1 is an OS.  "Linux 2.2.13"
>is a kernel.  Code to a distribution, and you have the parallel environment.

>Redhat, SUSE, Debian et al are *DIFFERENT* operating systems.

But should the be *DIFFERENT* operating systems or should the better
be the same operating system?

>They have a
>hell of a lot in common and interoperability between them is surprisingly
>good, but they _are_ different.

IMHO, they have too much not in common.

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

------------------------------


** 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
******************************

Reply via email to