Linux-Development-Sys Digest #875, Volume #7 Thu, 18 May 00 18:13:12 EDT
Contents:
NT drv 2 LNX -> how to handle IRP ("Michael Palme")
ping souce code (Diego Betancor)
zip with password (Diego Betancor)
Re: Need ideas for university funded project for linux (Doug Alcorn)
Re: Need ideas for university funded project for linux (Prasanth Kumar)
Re: Need ideas for university funded project for linux (Miquel van Smoorenburg)
Re: Need ideas for university funded project for linux ("Dag �yvind Liodden")
Re: Need ideas for university funded project for linux (JEDIDIAH)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
Re: serial port RTS control ? (Mario Klebsch)
linux kernel not C++ friendly? (Travis Hein)
Re: Keyboard Lockups A20 Keyb Processor gone Crazy? (Jimmy Huang)
Re: Need ideas for university funded project for linux ("Peter T. Breuer")
firewall measurement (ajam)
Re: ping souce code (Rick Ellis)
Re: linux kernel not C++ friendly? (Johan Kullstam)
Re: serial port RTS control ? ("Fred")
----------------------------------------------------------------------------
From: "Michael Palme" <[EMAIL PROTECTED]>
Subject: NT drv 2 LNX -> how to handle IRP
Date: Thu, 18 May 2000 20:47:14 +0200
My biggest problem is to port the mechanism of the NT IRPs.
I think if a program in user space calls ioctl(i.e) to an NT driver
the IO manager will copy all parameters for that call to the IRP
stack (in the IRP he created for that call) an then the IO manager
will transfer that stack to kernel space where the driver does his
work with the data on this stack an then give it back (is this really
right ??).
I have the sources for the NT driver.
I dont want to reinvent the wheel (or am I a lazy fellow ??
...I dont know). I dont want to waste time for changing
all the functions doing the general work (they are in pure ANSI C
and portable (I think so)). But they all dereference a pointer
(void pointer casted it for their special case) to the data
on the stack in the IRP . I think you cant dereference a pointer
to userspace from the kernel (in Linux) and you cant transfer complex
structures directly within an ioctl call.
My solution(??) is to create a global buffer in the driver. Then I want
to pass a pointer (via the ioctl parameter) to the data in userspace for
the appropriate call. Now in the ioctl switch I want to copy that data
to the buffer in the driver (copy_from_user()). I think now I must be
able to use the original functions (dereferencing their pointers)
from the NT sources passing a pointer to the buffer instead the pointer
to the IRP stack. When the functions have done their work I want to
copy the buffer back to user.
Is this a right way or is it really bullshit ??
Michael Palme
------------------------------
From: [EMAIL PROTECTED] (Diego Betancor)
Subject: ping souce code
Date: Thu, 18 May 2000 18:48:23 GMT
Hi,
ping is great but when it fails it does not tell you like windows
that says something about timeout. The only way that I know is
counting the number of packets and looking for one that is missing.
does anyone know where I can get the source for ping to change it?,
or does anyone already done it?
Thank you
Diego
Diego Betancor @ Duo Business Communications
for email: dbetancor is my userid and my company's domain is duocom.net
** Do not send me unsolicited commercial e-mail spam of any kind **
------------------------------
From: [EMAIL PROTECTED] (Diego Betancor)
Subject: zip with password
Date: Thu, 18 May 2000 18:52:44 GMT
Hi,
zip is a program that compresses files is a format that is
compatible with pkzip and the windows world. When you read the man
page, it describes -P password but when I tried it said that that
version of zip would not do it. Why? because my distribution
(slackware 7) is based in the US? because it only works in the DOS
version?.
Can I get a zip version that does encrypt?
Thank you, Diego
Diego Betancor @ Duo Business Communications
for email: dbetancor is my userid and my company's domain is duocom.net
** Do not send me unsolicited commercial e-mail spam of any kind **
------------------------------
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
From: Doug Alcorn <[EMAIL PROTECTED]>
Date: Thu, 18 May 2000 18:54:05 GMT
[EMAIL PROTECTED] (JEDIDIAH) writes:
> >
> >First, the Qt library _is_ now free. Trolltech decided to license it
>
> It's 'kinda' free. It's still owned by Trolltech.
OK, I stand corrected. I really don't think their license is as free
as other licenses (although the Open Source Group. With that said,
the ownership of the code as little to do with its freedom. The
freedom is all in the license. Ghostscript is a good example of free
software that is exclusively owned by Aladin Software.
> The ultimate proof is in the ports: So where are those Be and Mac
> versions?
>
> Contributors are, afterall, the whole point of a Free licence.
Yea, here's where I think Qt license falls apart. Basically,
TrollTech has made Qt free _only_ for Unix/X11. All other platforms
must purchase the "Professional Edition". I didn't see the source
code for Qt; however, they did talk about accepting patches. That
means the source must be available somewhere. So, this does classify
as allowing derived works; they just can only be distributed through
TrollTech. Not exactly my idea of how free shoftware is supposed to
work.
So, what _was_ the name of that project to make a free version of Qt?
I thought it was sponsored by FSF. I searched their page and didn't
find anything.
--
(__) Doug Alcorn (mailto:[EMAIL PROTECTED] - http://www.lathi.net)
oo / Win a 66MB capacity tape drive. Help me win too!
|_/ http://www.ecrix.com/extreme/getReferrals.cfm?ref=7612
------------------------------
From: Prasanth Kumar <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Thu, 18 May 2000 18:57:41 GMT
Doug Alcorn wrote:
>
> [EMAIL PROTECTED] (JEDIDIAH) writes:
> > >
> > >First, the Qt library _is_ now free. Trolltech decided to license it
> >
> > It's 'kinda' free. It's still owned by Trolltech.
>
> OK, I stand corrected. I really don't think their license is as free
> as other licenses (although the Open Source Group. With that said,
> the ownership of the code as little to do with its freedom. The
> freedom is all in the license. Ghostscript is a good example of free
> software that is exclusively owned by Aladin Software.
Can you elaborate in what way the QPL is less free than the GPL?
--
Prasanth Kumar
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Miquel van Smoorenburg)
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 18 May 2000 19:09:51 GMT
In article <[EMAIL PROTECTED]>,
Prasanth Kumar <[EMAIL PROTECTED]> wrote:
>Can you elaborate in what way the QPL is less free than the GPL?
GPL isn't all that free either, and is entirely unsuited for
(important) libraries like Qt or, for example, glibc.
For libraries you need the LGPL.
Mike.
--
Denial. It's not just a river in Egypt.
------------------------------
From: "Dag �yvind Liodden" <[EMAIL PROTECTED] (replace spam with dag)>
Subject: Re: Need ideas for university funded project for linux
Date: Thu, 18 May 2000 21:19:10 +0200
> Yea, here's where I think Qt license falls apart. Basically,
> TrollTech has made Qt free _only_ for Unix/X11. All other platforms
> must purchase the "Professional Edition". I didn't see the source
> code for Qt; however, they did talk about accepting patches. That
> means the source must be available somewhere. So, this does classify
> as allowing derived works; they just can only be distributed through
> TrollTech. Not exactly my idea of how free shoftware is supposed to
The source is available at their website (as well as CVS snapshots).
:)
Dag Liodden
------------------------------
From: [EMAIL PROTECTED] (JEDIDIAH)
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Thu, 18 May 2000 19:18:57 GMT
On 18 May 2000 19:09:51 GMT, Miquel van Smoorenburg <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>Prasanth Kumar <[EMAIL PROTECTED]> wrote:
>>Can you elaborate in what way the QPL is less free than the GPL?
>
>GPL isn't all that free either, and is entirely unsuited for
>(important) libraries like Qt or, for example, glibc.
>
>For libraries you need the LGPL.
...bear in mind that the two are refered to interchangably.
So, 'what he said' and 'what he meant' are likley two different
things. Probably not good enough in a real legal discussion but
good enough here.
--
In what language does 'open' mean 'execute the evil contents of' |||
a document? --Les Mikesell / | \
Need sane PPP docs? Try penguin.lvcm.com.
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 18 May 2000 14:41:21 -0500
In article <8g0n3l$j37$[EMAIL PROTECTED]>,
Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>
>I use slackware and debian, and have no problems with either. I'd never
>touch redhat with a bargepole, since it's as nonstandard as hell.
The nice thing about standards is that there are so many of them.
>But
>even srpms' come ready-packaged. One just has to open them,
>look at their spec file and makefile, edit to taste, and go. Apply
>whatever patches look neccessary after examining them closely and
>with suspicion. Remove all RH non-standard placements, and fire.
But, for a RH system, the RH placements are standard. This turns
out to be an acquired taste. Back when it was hard to find up to
date RPMs for everything and many programs needed local tuning to
work right, it was kind of annoying to have my custom-compiled
programs land in /usr/local/ while the stock RH versions of the
same thing did not use /usr/local at all. However, now that just
about everything in the world is already built as an up-to-date RH
oriented rpm and I only have a few things in /usr/local, I
am starting to like it that way.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: serial port RTS control ?
Date: Thu, 18 May 2000 20:05:10 +0200
[EMAIL PROTECTED] (Georg Acher) writes:
>In article <8g0gjj$nge$[EMAIL PROTECTED]>,
> "Fred" <[EMAIL PROTECTED]> writes:
>|> Hi all,
>|>
>|> I need to force high RTS line of a serial port before sending data and
>|> return it into normal state after transmission.
>|>
>|> I don't want a real flow control with RTS / CTS handshaking though, but just
>|> RTS control !
>I don'r know if this exactly what you want, bur maybe it is useful:
>You can use RTS (and DTR...) as general purpose output pins:
> int arg;
> // Clearing RTS
> arg=TIOCM_RTS;
> ioctl(fd,TIOCMBIC,&arg);
> // Setting RTS
> arg=TIOCM_RTS;
> ioctl(fd,TIOCMBIS,&arg);
These functions are the first ones, you find. However, there is one
problem with this sollution. The ioctl()s are handled asyncronous to
the output data. Lets make the following sequence:
int arg=TIOCM_RTS;
ioctl(fd,TIOCMBIS,&arg); // Setting RTS
write(fd, "Hello World\n", 12);
ioctl(fd,TIOCMBIC,&arg); // Clearing RTS
This will not work as expected, since the second ioctl() does not wait
until all data is send. In fact, the entire "Hello World\n" and even
much more, will fit into the device output queue. So you probably
will have a little spike on RTS and the data wil be shifted out of TxD
after that spike, when RTS is inactive. :-(
You have to do some waiting prior to releasing RTS. Waiting for the
output Queu to empty is not that hard, especially for kernel level
code. The next step is to wait for the internal FIFO of the UART to
become empty and after that, (now the last character is in the output
shift register), you still have to wait until the stop bit is output
on TxD. For this last delay, I had to use polling, and this is ugly.
OTOH, you cannot just use sleep, since very often, those systems do
not have anything like carrier or collision detection.
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
------------------------------
From: Travis Hein <[EMAIL PROTECTED]>
Subject: linux kernel not C++ friendly?
Date: Thu, 18 May 2000 16:01:13 -0400
I am very new to this linux world, and the art of building kernel modules.
I noticed when i ran the c++ compiler on even the most trivial of kernel
modules, some kernel include files make use of c++ predefined operators, like
new, class, etc.
Thus leading me to wonder, if a kernel module could not be developed using C++
classes and structures?
------------------------------
From: [EMAIL PROTECTED] (Jimmy Huang)
Subject: Re: Keyboard Lockups A20 Keyb Processor gone Crazy?
Date: 18 May 2000 20:15:04 GMT
Okay,
After scowering the comp.os.linux.* hierarchy. I found many many people
will the same problem that I had.
It turns out that anyone with a BusMouse or BusKeyboard will experience
lockups because Linux taxes the BusProcessor more than Windows does.
This causes the chip to heat-up. After the chip heats up, it goes nuts
and stops doing it's job.
As most systems will be tested with Windows* and not Linux, and as
Windows is able to *not* heavily tax this chip. I do not see why Linux
cannot do the same thing and be a little friendlier to the hardware.
Who do I write e-mail to about this so that the latest greatest kernel
will have this patches so that this processor will not overheat?
Currently, my fix was to unplug the Busmouse as I don't use it.
The thing that really bugs me is this. I have re-compiled the kernel,
and it has busmouse support via a module. But I haven't loaded the
module yet. Why is it freezing up on me?
(Maybe if I load the module, plug the mouse back in, everything will be
okay again??? ). Weird.
Jimmy
P.S.
Another thing I would like to note, is that the 3Com Etherlink III
(3c509b) cards will not work if plug-n-play is disabled. The module for
this network card does not work properly, and the drivers has to be
compiled into the kernel. This is kind of sad considering that most guys
out there probably use this card.
Other things I found, OLD Intel EtherExpress Pro/10+ cards suck alot of
power! So much power, that the motherboard isn't able to supply enough
power for any of it's other stuff, and the machine will refuse to boot!!!
I have got 10 of these cards, and when new, they all work fine. As they
get older, they begin to suck more and more and more power. Until finally
you get the situation I ran into. Pretty weird, some cheap CD-ROM drives
do this too! 3 of the 10 are begining to do this. Faulty power converter
modules? From the same manufacturer? hmm.
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 18 May 2000 20:34:22 GMT
In comp.os.linux.development Leslie Mikesell <[EMAIL PROTECTED]> wrote:
: But, for a RH system, the RH placements are standard. This turns
: out to be an acquired taste. Back when it was hard to find up to
: date RPMs for everything and many programs needed local tuning to
: work right, it was kind of annoying to have my custom-compiled
: programs land in /usr/local/ while the stock RH versions of the
: same thing did not use /usr/local at all. However, now that just
: about everything in the world is already built as an up-to-date RH
: oriented rpm and I only have a few things in /usr/local, I
: am starting to like it that way.
I've been using debian sources for too long now to remember what I used
to have to undo in the RH ones. I think it was config files that didn't
go into /etc but instead some place in /usr/lib.
I use /usr/local for things that weren't in my original system and
aren't likely to be in it for the foreseeable future. Netscape would
be an example, though I can't think of any good ones.
Peter
------------------------------
From: ajam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.security
Subject: firewall measurement
Date: Thu, 18 May 2000 16:51:45 -0400
Could someone suggest a way of testing if and/or how much the execution
Linux, specially the kernel, improves by using the kernel as a firewall,
instead of an external one? I'm trying to find out how to maximize
Linux as a firewall, and how I find a measurement for it. Any help will
be greatly appreciated! Thanks in advance!
Cheers, ajam
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: ping souce code
Date: 18 May 2000 21:14:49 GMT
In article <[EMAIL PROTECTED]>,
Diego Betancor <[EMAIL PROTECTED]> wrote:
> ping is great but when it fails it does not tell you like windows
>that says something about timeout. The only way that I know is
>counting the number of packets and looking for one that is missing.
> does anyone know where I can get the source for ping to change it?,
>or does anyone already done it?
It's in the netkit-base tarball:
http://metalab.unc.edu/pub/Linux/system/network/!INDEX.html
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: Johan Kullstam <[EMAIL PROTECTED]>
Subject: Re: linux kernel not C++ friendly?
Date: 18 May 2000 17:37:51 -0400
Travis Hein <[EMAIL PROTECTED]> writes:
> I am very new to this linux world, and the art of building kernel
> modules. I noticed when i ran the c++ compiler on even the most
> trivial of kernel modules, some kernel include files make use of c++
> predefined operators, like new, class, etc.
that's ok. the kernel is written in C. moreover, the kernel doesn't
use libc so it's a somewhat truncated version of C.
i get the feeling that keeping C++ keywords in the kernel headers is
there to discourage using C++. changing the headers to use new tokens
is trivial. what is not so trivial is putting in all the
infrastructure required for C++. mostly new, delete.
> Thus leading me to wonder, if a kernel module could not be developed
> using C++ classes and structures?
basically, it's not worth the bother. if you want to fork off a C++
variant of linux, be my guest. bear in mind, no one has cared enough
about this issue to do anything about it so far. however, if you do
get it going perhaps you will find people to join you.
--
johan kullstam l72t00052
------------------------------
From: "Fred" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: serial port RTS control ?
Date: Thu, 18 May 2000 23:57:48 +0200
Reply-To: "Fred" <[EMAIL PROTECTED]>
Thanks for all this explanations
> This will not work as expected, since the second ioctl() does not wait
> until all data is send. In fact, the entire "Hello World\n" and even
> much more, will fit into the device output queue. So you probably
> will have a little spike on RTS and the data wil be shifted out of TxD
> after that spike, when RTS is inactive. :-(
I guess there is no function to flush the data before to clear RTS ?
> You have to do some waiting prior to releasing RTS. Waiting for the
> output Queu to empty is not that hard, especially for kernel level
> code. The next step is to wait for the internal FIFO of the UART to
> become empty and after that, (now the last character is in the output
> shift register), you still have to wait until the stop bit is output
> on TxD. For this last delay, I had to use polling, and this is ugly.
humm, it's what I guess :-(
> OTOH, you cannot just use sleep, since very often, those systems do
> not have anything like carrier or collision detection.
Except that I am the only master on this line... so perhaps can I do a
sleep() though
Thanks again
Fred
------------------------------
** 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
******************************