Linux-Development-Sys Digest #895, Volume #7 Tue, 23 May 00 13:13:17 EDT
Contents:
Is it possible to remove a print spool file using C? ("jmt")
Re: REQ : PLX9080 driver source code (Tonu Samuel)
system performance info (agneskfc)
How to get returncodes from init_module ([EMAIL PROTECTED])
Re: high resolution timer? (David Peter)
Re: What !@#$ moron colorised g++? (Thomas Luzat)
Re: Need ideas for university funded project for linux (Johan Kullstam)
Re: high resolution timer? (Aki M Laukkanen)
ptrace question
Re: Need ideas for university funded project for linux (Someone)
Re: HELP: 8 Bit Linux ? ("Chris L.")
Re: How to find path to a shared module ("Jeff Ostrin")
Re: What !@#$ moron colorised g++? (Mike Dowling)
TL Workstation 4 sources reintall advice (Michael Kelly)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
Windows by Day, Linux by Night (Simone Paddock)
Re: Need ideas for university funded project for linux (JEDIDIAH)
What is a "dentry"? (Timur Tabi)
Re: Napster to Linux ! (=?iso-8859-1?Q?=E5NdRew?= yEonG)
Re: porting NT device drivers to linux (Marc SCHAEFER)
----------------------------------------------------------------------------
From: "jmt" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development
Subject: Is it possible to remove a print spool file using C?
Date: Tue, 23 May 2000 09:11:01 GMT
A current running application is creating spool
files when the network printer is down thusly, waiting for that network
printer to come back online to complete its job.
My question is, I have a daemon written in C, that re-issues a print job to
another printer on the network. I can't use "lpmove", don't ask me why
please. After I take the spooled file and print it to another printer, I
have to remove that file from the original spooler queue. If this is
possilble, how and what do I have to do?
Your help is much appreciated.
Thankyou,
Jeff
------------------------------
From: Tonu Samuel <[EMAIL PROTECTED]>
Subject: Re: REQ : PLX9080 driver source code
Date: Mon, 22 May 2000 05:36:05 +0300
Lighty wrote:
> I am in need of a PLX9080 driver source code. I am trying to write a driver
> myself but am facing some problems, and some source code would be of great
> help !
There was datasheet on their (PLX) website but I wasn't able to download
it because I had address containing word "spam" in it. Address was
really working [EMAIL PROTECTED] and I didn't
wanted to give any other address. This website claimed that I don't have
to use antispam addresses for their site ;(. So, are thay spammers?
Also they didn't answered to my mails.
About PLX9080 - I use one MUX of 8 RS-232-s here. Everything is ok even
without drivers except he multiplies all serial speeds to 8. So if you
use 300bps, real speed will be 2400bps. And there are equivalents for
many speeds but not for others like 115200.
T�nu
------------------------------
From: agneskfc <[EMAIL PROTECTED]>
Subject: system performance info
Date: 23 May 2000 10:14:21 GMT
How can I get the Linux system performance info, such as CPU usage,
collision, swaping, and paging. Is it possible to get these info from
Windows NT?
Thanks a lot.
Agnes
------------------------------
From: [EMAIL PROTECTED]
Subject: How to get returncodes from init_module
Date: Tue, 23 May 2000 11:29:00 GMT
Hello mighty kernelhackers.........
I wrote a simple module with an 'init_module()' function that returns
different errorcodes for some cases (i.e. -ENOMEM for kmalloc()error
or -EIO for PCI errors). If I 'insmod' the module and it fails with
some of these errorcodes I get only the errorstring from insmod which
always fails with -1. Is there a simple way to see the returncode
from 'init_module()' (best would be directly on the terminal after
insmod !) ?? I tried 'strace insmod....' and also to start a
userprogram with a simple 'perror()' call directly after the
failed 'insmod...', but i was not successful.
Would be nice If someboby helps me.....
Michael Palme
[EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Tue, 23 May 2000 12:56:42 -0700
From: David Peter <[EMAIL PROTECTED]>
Subject: Re: high resolution timer?
Not much good I'm afraid. This typically gives resolution only down to
10ms or so. I'm looking for something in the microsecond or nanosecond
range.
Erik de Castro Lopo wrote:
>
> David Peter wrote:
> >
> > Is there a call to get a high-resolution timer value on Linux (like
> > gethrtime() on Solaris)? I'm using RH6.1.
>
> man gettimeofday
>
> Erik
> --
> +-------------------------------------------------+
> Erik de Castro Lopo [EMAIL PROTECTED]
> +-------------------------------------------------+
> "The Internet interprets censorship as damage, and routes around it."
> - John Gilmore, EFF co-founder
------------------------------
From: Thomas Luzat <[EMAIL PROTECTED]>
Subject: Re: What !@#$ moron colorised g++?
Date: Tue, 23 May 2000 13:59:47 +0200
Reply-To: [EMAIL PROTECTED]
On 23 May 2000 07:16:38 GMT, [EMAIL PROTECTED] (Mike
Dowling) wrote:
>I don't use distributions, and I don't have the problem, whence it
>follows that some distributio(s) introduced it.
Did you install all the stuff by yourself? I currently do that with
the help of www.linuxfromscratch.org
Certainly interesting and one can easily configure each part of the
system during the installation phase, but quite a lot of work for Joe
User. But it's nice to see your system boot up without any of that
color stuff and sed, ed and vim being the only applications installed.
:-)
Gotta install XEmacs or Emacs soon...
Thomas
------------------------------
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: Johan Kullstam <[EMAIL PROTECTED]>
Date: Tue, 23 May 2000 12:04:16 GMT
David Steuber <[EMAIL PROTECTED]> writes:
> "Anthony W. Youngman" <[EMAIL PROTECTED]> writes:
>
> ' Every time I've tried to install an RH rpm on SuSE, it's given me
> ' dependency nightmares. SuSE use a different rpm naming convention, and
> ' apparently that's the cause :-(
>
> R otten
> P ackage
> M anagement
>
> Then again, InstallSheild, possibly the best installer in Windows
> land, is even worse. Go figure.
>
> Do people really have trouble with ./configure, make, make install?
> It has _never_ been a problem for me. Maybe I am just lucky. Even
> though I changed my compiler, libc, and libtools.
the problem isn't with the install, it's when you go to remove or
upgrade. sometimes it's hard (or at least tedious) to figure out what
all things went where. then when you find a random file, you wonder
where it came from. rpm doesn't really solve the shared config
tweaks very well (like editing an init script to set something up
while leaving setup for other stuff). rpm is clunky and sometimes a
pain in the ass, but it's not completely useless to me.
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!
------------------------------
From: [EMAIL PROTECTED] (Aki M Laukkanen)
Subject: Re: high resolution timer?
Date: 23 May 2000 12:18:24 GMT
In article <[EMAIL PROTECTED]>, David Peter wrote:
>Not much good I'm afraid. This typically gives resolution only down to
>10ms or so. I'm looking for something in the microsecond or nanosecond
>range.
In 2.2 and above kernels gettimeofday() is as precise as it can be.
See arch/i386/kernel/time.c for details.
--
D.
------------------------------
From: [EMAIL PROTECTED] ()
Subject: ptrace question
Date: 23 May 2000 15:24:33 CET
Hello all,
I wrote a small debug program using the ptrace interface. This program catches
SIGSEGV from the child process. Now I�m looking for a possibility to get the
invalid address that caused the SIGSEGV (like siginfo_t._sigfault.si_addr).
thanks
christian
------------------------------
From: Someone <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Need ideas for university funded project for linux
Date: Tue, 23 May 2000 10:21:52 -0400
Mr Steuber is an excellent example of my point. In my message can't you
tell I LIKE linux, I have Linux, I have used Linux for several years. It
is a great hobby to configure but once it is working what are you going to
use it for? Why don't any of the free ISPs support Linux? That would be
great. How can I spin down my SCSI drives when they are not in use? I've
been after that for years. Windows is no fun to install and configure, it
just basically works and you cannot really configure it. That means it
sucks if you want to spin down your SCSI drives because you can't. With
Linux you can do anything you want, well maybe, maybe somebody knows how,
maybe not. Maybe you post questions to boards and get real help, maybe
Dave answers. I still say "Great toy, bad technology".
David Steuber wrote:
> Someone <[EMAIL PROTECTED]> writes:
>
> ' Good technologies:
>
> ' Computers. Sit in front, look at monitor, type and click -
> '
> ' Bad Technologies:
> '
> ' Linux,
>
> Computers don't work without software. Windows can only loosely be
> defined to work. But if that is what you want, nobody is going to
> stop you.
>
> If Windows is so great, why do you have to reboot when you change your
> IP address?
>
> --
> David Steuber | Hi! My name is David Steuber, and I am
> NRA Member | a hoploholic.
>
> All bits are significant. Some bits are more significant than others.
> -- Charles Babbage Orwell
------------------------------
From: "Chris L." <[EMAIL PROTECTED]>
Subject: Re: HELP: 8 Bit Linux ?
Date: Tue, 23 May 2000 10:06:23 -0500
Ronald Cole <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Dan Mathias <[EMAIL PROTECTED]> writes:
> > Is there any 8 Bit Linux or Unix for the 68HC11 or 8088 cpu ?
>
> You might want to look into OS-9. I had a version for my Tandy Color
> Computer 2 (6809E) about 17 years ago. IIRC, Microware owned it then.
Try Microware! :) www.microware.com
> But like UCSD Pascal, I have no clue who owns it now.
>
> --
> Forte International, P.O. Box 1412, Ridgecrest, CA 93556-1412
> Ronald Cole <[EMAIL PROTECTED]> Phone: (760) 499-9142
> President, CEO Fax: (760) 499-9152
> My GPG fingerprint: C3AF 4BE9 BEA6 F1C2 B084 4A88 8851 E6C8 69E3 B00B
------------------------------
From: "Jeff Ostrin" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.misc,de.comp.os.unix.linux.misc,linux.dev.c-programming
Subject: Re: How to find path to a shared module
Date: Tue, 23 May 2000 08:30:25 -0700
Ah... another module that has well defined path's is opening the module
that I am writing, and it does not provide me with the information about
where my module is located :(
"Christian Stieber" <[EMAIL PROTECTED]> wrote in message
news:8gbca9$203$[EMAIL PROTECTED]...
> In de.comp.os.unix.linux.misc Jeff Ostrin <[EMAIL PROTECTED]> wrote:
>
> > Is there a system call I can make inside my module to get the path
> > to my module?
>
> No.
>
> However, somebody does in fact know the path, since dlopen() needs
> to find your module as well. So you can just pass the same "filename"
> argument as a parameter to your module.
>
> Christian
>
>
> --
> M�chten Sie Ihre Festplatten formatieren?
> [J]a
> [N]at�rlich
------------------------------
From: [EMAIL PROTECTED] (Mike Dowling)
Subject: Re: What !@#$ moron colorised g++?
Date: 23 May 2000 15:35:35 GMT
On Tue, 23 May 2000 13:59:47 +0200, Thomas Luzat <[EMAIL PROTECTED]> wrote:
>On 23 May 2000 07:16:38 GMT, [EMAIL PROTECTED] (Mike
>Dowling) wrote:
>
>>I don't use distributions, and I don't have the problem, whence it
>>follows that some distributio(s) introduced it.
>
>Did you install all the stuff by yourself? I currently do that with
>the help of www.linuxfromscratch.org
I started before there were distributions. A colleague gave me his own
backup on 15 floppies. It was version 0.7?, I cannot remember exactly.
I just took it from there, compiling new software as it was made
available and advertised in comp.os.linux.announce or as it came in on
the local mirrors and announced on local usenet groups.
Cheers,
Mike
--
My email address [EMAIL PROTECTED] above is a valid email address.
It is, in fact, a sendmail alias; the digit 'N' is incremented regularly.
Spammed aliases will be deleted. Currently, mike[26,27]
are valid. If email to mikeN bounces, try mikeN+1.
------------------------------
From: Michael Kelly <[EMAIL PROTECTED]>
Subject: TL Workstation 4 sources reintall advice
Date: Tue, 23 May 2000 11:45:48 -0400
Hi. I have TurboLinux workstation 4.0 and have been
experimenting with development kernels and other sw.
After messing around with soft links I finally got things
to where a kernel source tree won't build anymore.
The links to include files are hosed, and although
I could probably follow the trail along and relink
to all the include files, it seems it should be less
hassle to just reinstall the sources.
Anyone have any suggestions for reinstalling system
and kernel sources with minimal disruption to my
system configuration etc.?
Just wondering if there's an easy way to reload stuff without
wiping the partition to get back to square one. I don't have
any important programming sources but odds and ends
I've downloaded and such.
TIA
Mike
--
"I don't want to belong to any club that would have me as a member."
-- Groucho Marx
------------------------------
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: 23 May 2000 10:58:16 -0500
In article <[EMAIL PROTECTED]>,
David Steuber <[EMAIL PROTECTED]> wrote:
>' >For myself, if I am going to produce free software, I want it to be
>' >GPL. I don't want my work to be used in proprietary software unless I
>' >get paid for it.
>'
>' This doesn't make a bit of sense from a user's perspective. You
>' are saying that I can use the code only as long as it isn't linked
>' to something else that I might happen to need that is under
>' someone else's control. I don't think the internet would exist
>' as we know it today had it not been for the reference BSD code
>' that does allow use in proprietary works as well as additional
>' free ones.
>
>It makes no difference to an end user what the source license is.
It does make a difference when it makes it impossible to use.
>The Regents of University of California, Berkley choose their
>license. I get to choose mine.
I'm not arguing about your right to do whatever you want, I
am just saying that I don't understand what motivates you
to create a situation where I can download code, have it
on my machine and use it in any way I want, but only in
cases where I can do the linking myself. If another needed
component is controlled by someone else with an equal
right to choose their license, I won't be able to obtain
and use the combination together.
>If you want something that makes no sense, go to an NT box and look at
>the file \\WINNT\System32\etc\SERVICES. You will see a document from
>IANA that Microsoft has slapped their copyright on. They didn't
>change a single character in the file. Tell me that makes sense.
Lots of people make unenforcable claims but I don't want to take
that approach with the GPL. It is just that sanity I question.
Unless there really is a case for keeping it from competing
with commercial licensing of the same code (like ghostscript),
why give something away with strings attached that prohibit
a lot of uses?
Les Mikesell
[EMAIL PROTECTED]
------------------------------
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: 23 May 2000 11:03:23 -0500
In article <[EMAIL PROTECTED]>,
David Steuber <[EMAIL PROTECTED]> wrote:
>Then again, InstallSheild, possibly the best installer in Windows
>land, is even worse. Go figure.
>
>Do people really have trouble with ./configure, make, make install?
>It has _never_ been a problem for me. Maybe I am just lucky. Even
>though I changed my compiler, libc, and libtools.
Given a thousand packages, how long does it take you to be sure
you have the latest version of each installed using this
technique? How long does it take to figure out what is missing
when the linker can't resolve a symbol?
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Simone Paddock)
Subject: Windows by Day, Linux by Night
Reply-To: [EMAIL PROTECTED]
Date: Tue, 23 May 2000 16:20:45 GMT
For whatever reason, a great many Linux and UNIX
users spend a lot more time working with Windows
than they might like, or like to admit.
As Tim O'Reilly says in "Windows by Day, Linux by Night ":
"...because we don't admit to our use of Windows, because
it's a guilty secret, we don't spend the kind of time learning
how to get the most out of the system. We do what we have
to, and then go home, to where we feel more comfortable.
That changed for me a year and a half ago."
Find out why and how at:
http://windows.oreilly.com/news/byday_0500.html
The first 1000 people who read Tim's article get a free book.
Simone Paddock
O'Reilly & Associates
[EMAIL PROTECTED]
www.oreilly.com
------------------------------
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: Tue, 23 May 2000 16:24:42 GMT
On 23 May 2000 11:03:23 -0500, Leslie Mikesell <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>David Steuber <[EMAIL PROTECTED]> wrote:
>
>>Then again, InstallSheild, possibly the best installer in Windows
>>land, is even worse. Go figure.
>>
>>Do people really have trouble with ./configure, make, make install?
>>It has _never_ been a problem for me. Maybe I am just lucky. Even
>>though I changed my compiler, libc, and libtools.
>
>Given a thousand packages, how long does it take you to be sure
>you have the latest version of each installed using this
>technique? How long does it take to figure out what is missing
>when the linker can't resolve a symbol?
Typically the configure script should tell you. That's what
it's there for. All a binary package buys you is the ability
to easily force install a whole bunch of stuff at once. In
the case of RPM, one is specifically abusing the tool in order
to get it to work in a more convenient fashion.
--
In what language does 'open' mean 'execute the evil contents of' |||
a document? --Les Mikesell / | \
Need sane PPP docs? Try penguin.lvcm.com.
------------------------------
From: Timur Tabi <[EMAIL PROTECTED]>
Subject: What is a "dentry"?
Date: Tue, 23 May 2000 16:34:06 GMT
I would think that this is a FAQ, but based on my searches of
newsgroups, web sites, mailing lists, source code, and books, it appears
that no one has actually asked this question.
What is a dentry? I know it has to do with the file system, but I can't
find a definition of the word anywhere. I know it's not anything new
(2.2 has a structure called dentry), but the way people talk about it,
you'd think it was as well-known as the word "function" or "object".
--
Timur "too sexy for my code" Tabi
Remove "nospam_" from my email address when replying
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Mon, 22 May 2000 04:39:09 +0800
From: =?iso-8859-1?Q?=E5NdRew?= yEonG <[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: Napster to Linux !
Try to convince the author of Napster to give you the source codes...so
that you can port it to Linux and...make some improvement to it like
supporting more file formats....
then more students will use Linux .
Mongoose wrote:
> Hello,
> I am attempting to start a college project and have two of my
> ideas already being worked on. So I wanted to know what other people
> had for suggestions for linux projects? I was thinking of something
> along the lines of a project that would help promote the use of linux.
> What is something that most people could use? Something that could
> make a good 1 year R&D project?
--
.~. Live free or die !
/V\
// \\ ---------------------------------------------------
/( )\ �NdReW YEoNG� � ===> cHocoL�teM�[EMAIL PROTECTED]
^`~'^ ---------------------------------------------------
------------------------------
From: Marc SCHAEFER <[EMAIL PROTECTED]>
Subject: Re: porting NT device drivers to linux
Date: 23 May 2000 13:18:37 GMT
Mario Klebsch <[EMAIL PROTECTED]> wrote:
: the filesystem of the root fs can be a module), but they do not need
: any clutch like initrd to boot.
Hasn't the SPARC hardware high-level portable firmware written in FORTH ?
Can Solaris also boot modularly on ix86 where the nice hardware is not
available ?
Anyway: to state from the beginning, doing I/O in drivers is wrong.
If you need to download firmware, do it from a user-level utility.
------------------------------
** 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
******************************