Linux-Development-Sys Digest #951, Volume #7     Wed, 14 Jun 00 14:13:15 EDT

Contents:
  Re: Help with Compiler Errors ("Dmitriy A. Fedorov")
  Re: Catch system calls from an apps? ("Douglas Kilpatrick")
  Linux Application Server (Conrad Mukai)
  Re: How to mount floppey drive ? (Sam Birch)
  Re: How to mount floppey drive ? ("Robert")
  dynamic libraries under linux ([EMAIL PROTECTED])
  man pages for kernel functions (Daniel Krippner)
  Re: man pages for kernel functions ("Dmitriy A. Fedorov")
  Re: How to mount floppey drive ? (Tamas Rudnai)
  Linux and ABIT VT6X4 (Tony)
  Re: How to mount floppey drive ? (Josef Moellers)
  Re: __init function (Arnaud Westenberg)
  Re: __init function ([EMAIL PROTECTED])
  Re: how can i use ab program ? usage is difficult. ([EMAIL PROTECTED])
  Re: Kernel loadable modules... ([EMAIL PROTECTED])
  Re: Kernel loadable modules... ([EMAIL PROTECTED])
  Re: Interrupt for parallel port on 4 pins? ("Javier Gostling D.")
  Re: dynamic libraries under linux (Paul Kimoto)
  Re: Kernel loadable modules... (Edward Lee)
  Re: Dynamic linking shared library (John Gluck)
  Re: How to mount floppey drive ? ("Robert")
  Re: Good Basic compiler for linux? (John Gluck)
  Re: Kernel loadable modules... (John Thompson)

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

From: "Dmitriy A. Fedorov" <[EMAIL PROTECTED]>
Subject: Re: Help with Compiler Errors
Date: Wed, 14 Jun 2000 01:23:45 +0000

Timothy Sorrentino wrote:
> 
> Linux, so I am quite lost right now!  When I try to compile my driver, I
> get a lot of error messages about 'Dereferencing to incomplete pointer'
> among other error messages.  Searching newsgroup postings, this error

> compile it by 'gcc -o tmdriver driver.c'

gcc -o tmdriver.o driver.c -c -O -D__KERNEL__ -DMODULE
-fno-strict-aliasing

and #include lots of headers.

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

From: "Douglas Kilpatrick" <[EMAIL PROTECTED]>
Subject: Re: Catch system calls from an apps?
Date: Tue, 13 Jun 2000 23:22:15 -0500

In article <[EMAIL PROTECTED]>, Gautier Fabrice
<[EMAIL PROTECTED]> wrote:

> I know programs like strace are able to catch and records the system
> calls (so i may look at the source) but i would like to know if there is
> a way to really interrupt the call and execute another piece of code? 

1) Override libc symbols.
2) ftp.tislabs.com/pub/pub/wrappers (linux port not available yet)
3) http://www.subterfugue.org/

Lots of people are playing around in this space, so I did not come close to
listing all of them.

Re: Wrappers [2]

I've worked with GSWT (Generic Software Wrappers Toolkit.  Wrappers for
short) for a while, and so am biased.  IMHO, its cool stuff.  It makes it
very easy to intercept system calls and manipulate arguments/add additional
security policies/manipulate return values.  A bit of fluff is at
http://www.nai.com/nai_labs/media/pdf/wrappers.pdf.  I'd give a URL to
actual technical documentation, but I can't find one.

The linux port should be available in a month or so.  If you want a copy
before then, let me know and I can give it to you, with the normal "if it
breaks, you get to keep both pieces" warnings.  It will be GPL'd in the
future, but I don't know the exact time frame.  The current license is
annoyingly propriatary.

> For the moment i'm only looking for system calls but i may want to catch
> libc calls (in programs dynamically linked with) or any other dynamic

For that, you normally want to use option 1, and override libc symbols. In
Linux, libc symbols are weak symbols, which means that if the program
already has a symbol for "read", that will be used instead of the one in
libc.  Combine this with LD_PRELOAD, and you can inject an arbitrary
library with your definitions of symbols into a process, and override the
definitions in libc.  (For obvious reasons, this does not work with setuid
programs)

If you need a more detailed example, I have one I can give you (it turns
all references to .pdf files into lowercase to get around a problem with a
CDROM) but not here at home.  Send me an email and I'll try and put it
together.

If you have access to the program, you could also use the "-wrap" option of
GNU's "ld", which does the same type of thing at link time.  Much easier.

Doug
-- 
Doug Kilpatrick
[EMAIL PROTECTED]


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

From: Conrad Mukai <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.setup
Subject: Linux Application Server
Date: Wed, 14 Jun 2000 04:25:59 +0000

I was interested in anyone's experience with serving up programs through
an NFS mount of /usr from an applications server. I've done some
experiments and found that the most annoying thing to be that the
shutdown sequence does not account for mounts of /usr causing shutdown
to take on the order of 5-10 minutes. Since the Linux users in my
network rarely reboot, this is only considered to be a minor
incovenience. What concerns me more is upgrading to new distributions.
Since /lib must reside on each client for booting up, would I have to
upgrade ALL the machines on my network in order to upgrade to a new
distribution? Or is it generally safe to mix applications with versions
of libc from different distributions (I'm talking about minor rev
changes) while I upgrade client boxes at my leisure? Any input would be
of help here. Thanks in advance.

Conrad Mukai
[EMAIL PROTECTED]



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

From: Sam Birch <[EMAIL PROTECTED]>
Subject: Re: How to mount floppey drive ?
Reply-To: [EMAIL PROTECTED]
Date: Wed, 14 Jun 2000 06:37:30 GMT

You didn't mention it, but IF you have an LS-120 (or similar ATAPI
floppy) the device is actually /dev/hdd (usually). 

All our help is guessing without knowing more details.

HTH
Sam


On Tue, 13 Jun 2000 09:55:08 GMT, "Robert" <[EMAIL PROTECTED]>
wrote:

>Hi all
>I have installed linux redhat 6.0 with KDE  in my computer i have little
>dificulity to mount floppey drive in my computer.
>
>I am getting erro as mount: you must specify the file type when i am using
>the commad :  mount /dev/fd0 /mnt
>
>i am also getting error as mount: /dev/fd0  is not a valid block when i am
>using the command
>mount -t ext2 /dev/fdo /mnt
>
>Please helpe me if you know how to do it
>
>Thanks in advance Robert
>


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

From: "Robert" <[EMAIL PROTECTED]>
Crossposted-To: linux.help,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: How to mount floppey drive ?
Date: Wed, 14 Jun 2000 08:32:48 GMT

Thank you all for your help, i did all your sugesstion, but i am still
getting the
answer saying  mount: /dev/fd0  is not a valid block .

I will be gratefull for another sujestion   Robert




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

From: [EMAIL PROTECTED]
Subject: dynamic libraries under linux
Date: Wed, 14 Jun 2000 09:10:08 GMT

could some one point me to some place where i can learn how to build a
dynamic libraries under linux.

ali al-khalidi


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

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

Date: Wed, 14 Jun 2000 11:22:36 +0200
From: Daniel Krippner <[EMAIL PROTECTED]>
Subject: man pages for kernel functions

dummy question:

are there manpages for functions like get_free_page or register_chardev 
or whatever? Or am I required to grep every time I need something?
thanks
-- 
[EMAIL PROTECTED]
Student of Communication Engineering/Computer Networking
Furtwangen University of Applied Sciences

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

From: "Dmitriy A. Fedorov" <[EMAIL PROTECTED]>
Subject: Re: man pages for kernel functions
Date: Wed, 14 Jun 2000 09:59:01 +0000

Daniel Krippner wrote:
> 
> are there manpages for functions like get_free_page or register_chardev
> or whatever? Or am I required to grep every time I need something?
> thanks

ftp://ftp.inp.nsk.su/export/fedorov/man9-19980213.tar.gz

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

From: Tamas Rudnai <[EMAIL PROTECTED]>
Crossposted-To: linux.help,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: How to mount floppey drive ?
Date: Wed, 14 Jun 2000 11:08:03 +0100

Robert wrote:

> Thank you all for your help, i did all your sugesstion, but i am still
> getting the
> answer saying  mount: /dev/fd0  is not a valid block .
>
> I will be gratefull for another sujestion   Robert

And what does   cat /proc/devices  say?   (Is the HW working, anyway? Can
you see your floppy under DOS?)

Tamas



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

From: Tony <[EMAIL PROTECTED]>
Subject: Linux and ABIT VT6X4
Date: Wed, 14 Jun 2000 12:30:03 GMT

I was wondering if anyone can tell wich kernel i would for support of this 
chipset.

Thanks

P.S i know Abit as it's own distro but i am used to the Red Hat one.



--
Posted via CNET Help.com
http://www.help.com/

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

From: Josef Moellers <[EMAIL PROTECTED]>
Crossposted-To: linux.help,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: How to mount floppey drive ?
Date: Wed, 14 Jun 2000 14:38:32 +0200

Tamas Rudnai wrote:
> =

> Robert wrote:
> =

> > Thank you all for your help, i did all your sugesstion, but i am stil=
l
> > getting the
> > answer saying  mount: /dev/fd0  is not a valid block .
> >
> > I will be gratefull for another sujestion   Robert
> =

> And what does   cat /proc/devices  say?   (Is the HW working, anyway? C=
an
> you see your floppy under DOS?)

More important: what does
        ls -l /dev/fd0
say? What if Robert inadvertedly replaced his device node by a plain
file?

-- =

Josef M=F6llers
Fujitsu Siemens Computers
SHV Server DS 1

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

Date: Wed, 14 Jun 2000 13:47:36 +0200
From: Arnaud Westenberg <[EMAIL PROTECTED]>
Subject: Re: __init function

David wrote:

> YES, user __atributte__(constructor) to determine which functions are
> called when you link with library or before your main.
> Of course, you can use destructor option to call this function after
> main exits.

I found the function attributes in the GCC manual. I understand that the
functions specified with these attributes are executed before or after
the execution of main() but is this code also dumped from memory when
finished executing like the kernel code specified with __init?

Arnaud

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

From: [EMAIL PROTECTED]
Subject: Re: __init function
Date: Wed, 14 Jun 2000 14:25:50 GMT

David <[EMAIL PROTECTED]> wrote:
: Arnaud Westenberg wrote:
:> I would like to get rid of initialization code in my loadable module,
:> however __init only works when the code is linked into the kernel.
:> 
:> Are there any other ways to get rid of my initialization code?

: YES, user __atributte__(constructor) to determine which functions are
: called when you link with library or before your main. 
: Of course, you can use destructor option to call this function after
: main exits.

No.

You have to write additional kernel code to get it to drop the pages
you don't want from your module, after it loads and initializes.

        Jeff




-- 
Jeff Garzik              | Liberty is always dangerous, but
Building 1024            | it is the safest thing we have.
MandrakeSoft, Inc.       |      -- Harry Emerson Fosdick

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

From: [EMAIL PROTECTED]
Subject: Re: how can i use ab program ? usage is difficult.
Date: Wed, 14 Jun 2000 14:27:44 GMT

hsungsoo <[EMAIL PROTECTED]> wrote:
: hi!
: i am trying to use ab for apahce bench marking.
: but when i type command ab , it shows error message .

Here is one of my network card test scripts:

rum:~> cat bin/httpd-test
#!/usr/bin/perl -w
 
use strict;

# usage: httpd-test HOSTNAME SLEEP-TIME-BETWEEN-TESTS
 
my $host = $ARGV[0];
my $sleep = $ARGV[1];
my $url = "http://$host/1K.html";
my $clients = 40;
my $requests = 8000;
my $nloop = 1;
 
while (1) {
        system ("clear");
 
        print ("ab -c $clients -n $requests $url\n");
        system("ab -c $clients -n $requests $url | tee bench.$host.$nloop");
 
        print "sleep $sleep\n";
        sleep $sleep;
 
        print "Test run $nloop complete\n";
        $nloop ++;
}

-- 
Jeff Garzik              | Liberty is always dangerous, but
Building 1024            | it is the safest thing we have.
MandrakeSoft, Inc.       |      -- Harry Emerson Fosdick

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

From: [EMAIL PROTECTED]
Subject: Re: Kernel loadable modules...
Crossposted-To: comp.os.linux.misc
Date: Wed, 14 Jun 2000 14:30:47 GMT

In comp.os.linux.development.system David Steuber <[EMAIL PROTECTED]> wrote:
: I'm wondering if Linux supports the notion of loading kernel modules
: that do not depend on the specific version/patch level of the kernel.

Yes, CONFIG_MODVERSIONS.  This versions each function and structure
interface, making it a bit more independent of kernel version.


: For example, suppose vendor X comes out with a piece of hardware that
: the vendor wants to work with Linux.  But the vendor does not want to
: distribute source code for some reason, just a binary driver.

: Is it possible to create such a module that will work when the user
: decides to go from kernel 2.2.14 to 2.4 or 2.3.x?

No, even with CONFIG_MODVERSIONS the differences are such that a new
binary module would be required in any
case.

Note also that binary modules must be rebuilt if any of the following change:
* compiler version
* compiler options
* SMP or no
* Other kernel config options...

        Jeff





-- 
Jeff Garzik              | Liberty is always dangerous, but
Building 1024            | it is the safest thing we have.
MandrakeSoft, Inc.       |      -- Harry Emerson Fosdick

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

From: [EMAIL PROTECTED]
Subject: Re: Kernel loadable modules...
Crossposted-To: comp.os.linux.misc
Date: Wed, 14 Jun 2000 14:31:49 GMT

In comp.os.linux.development.system David Steuber <[EMAIL PROTECTED]> wrote:
: What you say makes sense.  And those bastards do consider their
: 'inellectual' property to be precious.  Has anyone been successful
: getting the information necessary to write a driver for the Logitech
: QuickCam VC ( USB camera ) yet?  Pulling teeth from an angry tiger is
: much, much easier! :-(.

MandrakeSoft is working on it...

        Jeff




-- 
Jeff Garzik              | Liberty is always dangerous, but
Building 1024            | it is the safest thing we have.
MandrakeSoft, Inc.       |      -- Harry Emerson Fosdick

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

From: "Javier Gostling D." <[EMAIL PROTECTED]>
Subject: Re: Interrupt for parallel port on 4 pins?
Date: Wed, 14 Jun 2000 02:44:21 -0400

"fprintf" <[EMAIL PROTECTED]> escribi� en el
mensaje news:[EMAIL PROTECTED]...
> I am looking at the various documentation I can find on
> programming for the parallel port about coding for interrupts.
> I have a slot car timing system that repeatedly polls the
> parallel port for "events".  I have been told that if I could
> figure out a way to do so, using interrupts would be *far* more
> efficient.  I can understand that it would be, however I am
> looking at the value of 4 pins on my parallel port, one of which
> is Pin 10 - which is the pin that generates the interrupt.  I
> cannot just look at activity on Pin 10 to generate my interrupt
> - I need to look at any/all pins.
>
> Is it possible to designate activity on pins 10, 11, 12 and 15
> to generate an interrupt?  If not, is there a better way to
> monitor activity on those pins other than a constantly cycling
> do loop?
>
If I get it right, you want to write an interrupt handler in userspace,
right?. Hmm... not likely... What frequency do you require to poll? If it's
not too fast, then using a polling loop wouldn't be that much of a drain in
system resources (mainly CPU). Consider most people use the lp driver in the
kernel in polling mode, and lpd doesn't seem to impact overall system
performance at all...
- Javier



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

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: dynamic libraries under linux
Date: 14 Jun 2000 12:01:43 -0500
Reply-To: [EMAIL PROTECTED]

In article <8i7i59$g32$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> could some one point me to some place where i can learn how to build a
> dynamic libraries under linux.

[This is off-topic for c.o.l.d.system.]

The GCC HOWTO, particularly this section:
 http://www.linuxdoc.org/HOWTO/GCC-HOWTO/x575.html

-- 
Paul Kimoto

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

From: Edward Lee <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: Kernel loadable modules...
Date: Wed, 14 Jun 2000 10:02:08 -0700

There are enough changes from 2.2.14 to 2.2.15 that would require re-compiling most
modules.  Forget about 2.2.14 to 2.4.  Any volunteers to port the PCtel modem driver
based on the serial.c drivers?  I cannot move to 2.4 unless there is a driver for my
modems.

[EMAIL PROTECTED] wrote:

> In comp.os.linux.development.system David Steuber <[EMAIL PROTECTED]> wrote:
> : I'm wondering if Linux supports the notion of loading kernel modules
> : that do not depend on the specific version/patch level of the kernel.
>
> Yes, CONFIG_MODVERSIONS.  This versions each function and structure
> interface, making it a bit more independent of kernel version.
>
> : For example, suppose vendor X comes out with a piece of hardware that
> : the vendor wants to work with Linux.  But the vendor does not want to
> : distribute source code for some reason, just a binary driver.
>
> : Is it possible to create such a module that will work when the user
> : decides to go from kernel 2.2.14 to 2.4 or 2.3.x?
>
> No, even with CONFIG_MODVERSIONS the differences are such that a new
> binary module would be required in any
> case.
>
> Note also that binary modules must be rebuilt if any of the following change:
> * compiler version
> * compiler options
> * SMP or no
> * Other kernel config options...
>
>         Jeff
>
> --
> Jeff Garzik              | Liberty is always dangerous, but
> Building 1024            | it is the safest thing we have.
> MandrakeSoft, Inc.       |      -- Harry Emerson Fosdick


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

From: John Gluck <[EMAIL PROTECTED]>
Subject: Re: Dynamic linking shared library
Date: Wed, 14 Jun 2000 13:13:21 -0400

Nera wrote:

> Hello
>
>     Can anyone tell me the concept of dll?
>
> Nera
>

Sure...
It's prety much the Windows equivalent of a shared object file.
That is a library of commonly used functions that is dynamically load
and
linked at runtime.
DLL means Dynamic Link Library.



[snip]
--
John Gluck  (Passport Kernel Design Group)

(613) 765-8392  ESN 395-8392

Unless otherwise stated, any opinions expressed here are strictly my own
and do not reflect any official position of Nortel Networks.

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

From: "Robert" <[EMAIL PROTECTED]>
Crossposted-To: linux.help,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: How to mount floppey drive ?
Date: Wed, 14 Jun 2000 17:22:56 GMT

Thanks again

I did mkdir �p /mnt/floppy and mount �t msdos dev/fd0 mnt/floppy

When I do this some thing happening in my floppy and it start blinking.
But when I am writing ( mdir a:  or mcopy a:*. )  it is saying cant open
device, device is beusy, cant initialise A.) In tried  from desktop
navigator to read my floppy using open location in kfm by writing (/dev/fd0)
I am getting file does not exist or acess denid.
Why it is saying file does not exist, I am trying to read my floppy disk.
I also tried to read my cdrom , it is saying the same answer again. It
couldnt be possible, because I installed Linux using my floppy disk and
cdrom.

Please help I have tried every thing

Thanks   Million times    Robert



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

From: John Gluck <[EMAIL PROTECTED]>
Subject: Re: Good Basic compiler for linux?
Date: Wed, 14 Jun 2000 13:16:52 -0400

dave wrote:

> I manage a small team of VB programmers and I am looking for a Basic
> Compiler and IDE for Linux. I have seen Xbasic and some others but they are
> quite the quality I am looking for. I need a complete commercial package
> with available support. Anyone know of such a product?
>
> thanks
> [EMAIL PROTECTED]

By VB i assume you mean Visual Basic. If that's the case I think you'll find
that BASIC is not really the same thing

--
John Gluck  (Passport Kernel Design Group)

(613) 765-8392  ESN 395-8392

Unless otherwise stated, any opinions expressed here are strictly my own
and do not reflect any official position of Nortel Networks.




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

From: John Thompson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: Kernel loadable modules...
Date: Wed, 14 Jun 2000 11:52:44 -0500

John Gluck wrote:

> I find it difficult to understand this concept of drivers for hardware being
> "intellectual property".
> The whole point behind providing a driver is to sell hardware. The more
> operating systems a manufacturere's hardware can be used with, the more
> hardware they can sell.

Agreed.

> Spreading around the knowledge of how to write drivers for a particular rodent
> or camera means that the manufacturer gets free development and a larger
> market. This translates to dollars on their bottom line.
> Unfortunately, there are braindead individuals in the marketing departments who
> feel that making available information about registers and such will allow
> competitors to copy their hardware. The logic of this escapes me. Anyone who
> wants to copy your hardware will take it apart and figure out what makes it
> tick.

I suspect the manufacturers are worried that if they provide
driver specifications to develop software for other platforms
they will be expected to support those other platforms. Windows
is a known commodity: you can hire anyone off the street to tell
your customers to reboot and reinstall when they run into
problems.  But users of other platforms may not be satisfied with
this approach and insist on real support from trained staff.  And
that costs money.

-- 

-John ([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