Linux-Misc Digest #179, Volume #19 Thu, 25 Feb 99 19:13:10 EST
Contents:
Re: IBM adds Linux (NF Stevens)
Re: rpm's and slackware (NF Stevens)
Re: installing linux (Jeremy Nickolet)
Re: Linux is not even in Windows 9X's class. (Darin Johnson)
Re: Linux Programs (Ed Cogburn)
Re: running diald and the connection keeps coming up ("Keith G. Murphy")
Re: smbmount (siva kandan)
Re: Best Free Unix? (why FreeBSD?) (John S. Dyson)
Re: Best Free Unix? (why FreeBSD?) (Christopher B. Browne)
Re: Best Free Unix? (why FreeBSD?) (Edward Avis)
Re: Best Free Unix? (why FreeBSD?) (Richard E. Hawkins Esq.)
Has anyone tried Applixware Office Suite 4.4.1? (Ahrum Song)
Re: How do u mount a ZipDrive? ("Brett R. Rosselle")
rvplayer netscape, rvplayer.. (Tamas Antal)
launch rvplayer.. (Tamas Antal)
Re: xosview with linux-2.2.2
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (NF Stevens)
Subject: Re: IBM adds Linux
Date: Thu, 25 Feb 1999 23:07:41 GMT
[EMAIL PROTECTED] (steve mcadams) wrote:
[snip]
>What I intended to say is that I heard somewhere that there is
>something missing in the Intel architecture that prevents you from
>doing this. I don't know what it is yet or if there's really
>something missing, it could be an urban legend for all I know at the
>moment.
A process can find out in which protection level it is running
by checking the lower two bits of the code segment selector.
e.g.
mov eax, cs
and eax, 3
Reading the value of the code segment selector is not a privileged
instruction so the virtual machine cannot trap and emulate this. If
a process is running at level 0 then it is in control of the machine,
if it is running at any other privilege level then it is not in control
even though executing privileged instructions seems to work.
Norman
------------------------------
From: [EMAIL PROTECTED] (NF Stevens)
Subject: Re: rpm's and slackware
Date: Thu, 25 Feb 1999 23:07:42 GMT
[EMAIL PROTECTED] wrote:
>On 23 Feb 1999 20:39:42 GMT, [EMAIL PROTECTED] (Jason
>Rotunno) wrote:
>
>>
>>are rpm's specifically for redhat or can they be used in slackware as
>>well? i was trying to install kde, but it wouldn't compile properly so
>>i'm wondering if i can try to install it using rpm. also, i'm downloading
>>enlightenment and one of the libraries needed is offered only as rpm or
>>for debian, but no source code so i'm wondering if i can use the rpm...or
>>the debian version if it'll work under slackware.
>>
>there is a tool to convert rpm to tgz files. and you can then use
>slakware package managment to install/remove it.
>
>
Alternatively you can use mc (Midnight Commander) to view the
contents of the rpm and copy files from it.
Norman
------------------------------
From: Jeremy Nickolet <[EMAIL PROTECTED]>
Crossposted-To:
alt.linux,comp.os.linux,comp.os.linux.questions,comp.os.linux.redhat,comp.os.linux.setup
Subject: Re: installing linux
Date: Thu, 25 Feb 1999 22:25:16 GMT
Chris T. wrote:
> does anyone know why i can't seem to install linux (Redhat 5.2), i boot up my
> system, and select the option i wanted, then when it comes to where i am
> installing it from, i select local cd-rom, but then i do that, it just seems
> to be stuck.
>
> I'm installing from CD-ROM which is written in Joliet format, and my hard
> drive is already formatted for linux file format with the swap file partition
> already made. If anyone can help me, please e-mail me.
Did you create the CD yourself? Or is it a commercial CD? If you created it
yourself, there are specific steps that you have to take inorder for it to work
properly. Try burning an .iso CD image that will save you the trouble of trying
to sort out all of the details. There are .iso images available for download
but I don't have any addresses available off hand. Or buy a $2 CD from
http://www.cheapbytes.com
Jeremy
------------------------------
From: Darin Johnson <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.advocacy
Subject: Re: Linux is not even in Windows 9X's class.
Date: 25 Feb 1999 14:43:20 -0800
"iratheous" <[EMAIL PROTECTED]> writes:
> I'm glad to see honesty, even when dealing with something you dont like :)
> Oh btw, I don;t liek counter arguments of 'it's debatable' without actually
> presenting a debate! It's a cop-out. "It isn't as good", "Why" , "Because
> it isn't!"
It's not a cop-out per se. It's that presenting the entirety of the
debate will take ages. It's short-hand for saying that there is no
clear agreement on that point despite the original implication that
it's self-evidently true. It's a way of saying "I disagree, but don't
want to go into details" rather than just keeping quiet and having
other readers assume everyone agrees.
The original did not present arguments as to why those items were
advantages in Windows, so why should people with opposing views give
arguments? Each of those points is an entire thread in itself, most
of which have actually been long threads. Saying "it's debateable" is
the same as saying "many people have different views", and there's
nothing at all wrong with that given that the original points were
presented as merely a personal view anyway!
Ie, one item was that Windows user support is better. Now the fairest
rebuttal to this unsupported statement is indeed "that's debateable".
This is because there are a large number of people that strongly feel
that Microsoft support is great, and also a large number of people
that feel decent Microsoft support is difficult to get, and also a
large number of people that feel they have gotten better support for
Linux than anything they've gotten from Microsoft. However, I
personally don't have a list of those people, and have not saved up
anecdotes much less verified them, so I can't give a good argument to
this.
Besides, what do you do if you're eating lunch with someone who says
something you disagree with? Do you always go on for hours defending
your opposing view, or do you sometimes say "I disagree". If someone
says "I disagree" to you during lunch, do you say "that's a cop-out"?
--
Darin Johnson
Caution! Under no circumstances confuse the mesh with the
interleave operator, except under confusing circumstances!
------------------------------
From: Ed Cogburn <[EMAIL PROTECTED]>
Subject: Re: Linux Programs
Date: Thu, 25 Feb 1999 16:01:34 -0500
jik- wrote:
>
> David M. Cook wrote:
> >
> > On Thu, 25 Feb 1999 06:28:09 GMT, Linux Newbie <[EMAIL PROTECTED]> wrote:
> >
> > > Here is a newbie question. When you compile and install a
> > >Linux program does that program only consist of one file (the
> > >executable) and maybe a configuration file?
> >
> > A package like XEmacs can contain hundreds of files. That's an extreme
> > example, though.
> >
> > If you want to keep better track of installed software, I suggest installing
> > a distribution with package management like Redhat, SUSE, Mandrake which use
> > RPM or Debian. It'll make your Linux experience more pleasant.
>
> Bahhh, you don't need that crap....only keeps you from learning what you
> need to survive by making life look easy for a while. Don't use those
> "make life easy" tools until you already know the background of what it
> is doing, then test them out and see if you really find them
> usefull....you may find that they're really nothing special.
>
> Besides, rpms are only as good as thier author, a broken one can be
> quite painful....especially if you don't know how to fix your system
> afterwards.
Sounds like a diehard Slackware fanatic to me. :-)
To newbies who may be listening: There is an argument to be made
for learning the inner workings of Linux, but for many the
important part is getting up and running as soon as possible,
doing the things that you want to do. The learning of the inner
workings can be done at your own pace.
There is more to these packaging systems then simply keeping
track of related files. One example: Debian packages that
include a user type of app, will install a menu item on the root
menu feature of Debian's X setup. Thus, almost all of the apps
you've installed on your system show up as an item on the root
menu display in X. A few clicks and you can run anything (that
was in a Debian package) you've installed.
--
Ed C.
------------------------------
From: "Keith G. Murphy" <[EMAIL PROTECTED]>
Subject: Re: running diald and the connection keeps coming up
Date: Thu, 25 Feb 1999 17:19:44 -0600
Reply-To: [EMAIL PROTECTED]
Conway Yee wrote:
>
> I know that SOME process is sending requests to the name server every
> 30 minute at x:01 and x:31. I have killed most of the daemons without
> success. I suspect that running the portmapper is part of the problem
> but I really can nail it down. Killing the portmapper at least
> reduces the problem but doesn't eliminate it. I have tried telling
> diald to ignore packets from the portmap port to the domain port
> without success.
>
> Running dctrl, and rpcinfo just tells me that a port is calling the
> name server. I do not know which process. Running diald with debug
> 31 doesn't nail things down either.
>
> The diald FAQ doesn't help as I have tried everything that they suggest.
>
> I am running RedHat 5.2 with the addition of diald.
>
Take a really good look at what cron is doing at that time. Mine was
running nntpsend every hour; probably some wrong thing I did at
installation. Also, smbd and/or nmbd were causing it to dial out; had
those just stop running, since I didn't need Samba on that machine.
------------------------------
From: siva kandan <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.setup,comp.os.linux.help,alt.os.linux,comp.os.linux.admin,alt.uu.comp.os.linux.questions
Subject: Re: smbmount
Date: Thu, 25 Feb 1999 14:12:27 -0800
niklas norstr=F6m wrote:
> =
> Line 354 in /usr/src/linux-2.2.1/Documentation/Changes
> =
> To mount SMB (Samba / Windows) shares, you'll need to use the
> smbmount utility included with release 2.0 of Samba.
> Documentation/filesystems/smbfs.txt has more information about this.
> Note that smbmount must have been built against 2.2 headers to work
> with 2.2; if all else fails, recompile it and hope it works ;-). In
> addition, Mike Warfield has a script and some information at
> http://www.wittsend.com/mhw/smbmount.html that you will probably find
> useful.
> =
> /niklas
> =
> Ed Szynaka wrote:
> =
> > I'm having trouble trying to mount my Win smb shares in linux. I can=
> > use samba to view and transfer files but I can't mount them. I keep
> > getting the error need mount version 6. Anyone have any ideas why I
> > keep hitting this wall?
> >
> > Thanx
> > Ed
-- =
$~*~$~*$~*~$~*$~*~$~*$~*~$~*$~*~$~*$~*~$~*$
SIVANANTHAM KANDAN
Global Export Management - Development
x30504
[EMAIL PROTECTED]
$~*~$~*$~*~$~*$~*~$~*$~*~$~*$~*~$~*$~*~$~*$
------------------------------
From: [EMAIL PROTECTED] (John S. Dyson)
Crossposted-To: gnu.misc.discuss,comp.unix.advocacy,comp.unix.bsd.freebsd.misc
Subject: Re: Best Free Unix? (why FreeBSD?)
Date: 25 Feb 1999 04:16:23 GMT
In article <xY2B2.11342$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Christopher Browne) writes:
>>
>>Note the problems The Open Group had with X last year: enough people
>>were using their code without returning anything (not code, not money,
>>not even a "thank you") that they changed the license to forbid that so
>>that they could survive. Fortunately enough of a ruckus was raised, and
>>presumably enough support promised back (TOG didn't change their mind
>>out of the goodness of their hearts) that they reversed that.
>>
>>If you don't want to share your code with others, don't expect them to
>>be thrilled with sharing their code with you.
>
> The TOG situation is actually illustrative of the notion that
> "freeriders" can be a problem with BSD style licenses every bit as much
> as with GPL style licenses. (In other words, if the software is "free,"
> by any of the recognized definitions, whether John Dyson thinks that the
> license is "free" or not...)
>
TOG failed with the proprietary effort even with the BSD license. It
is because they didn't have enough perceived added value. You just
cannot embargo software and sell it for money, if it is also available
for free. The "protection" that GPL provides is an illusion in many
(but not all cases.) TOG would even have problems making money if there
software was significantly "better" than the free version. They would
have to add VERY SIGNIFICANT IP to make $$$ (or ###, or whatever).
I am NOT arguing for the abolishment of GPL, but only that it is not
always (and in fact, IMO seldom) the best license to use. In some
sense it is a compromise, but one that I (personally) would have to
"hold my nose" to use given the manifesto and other incendary and
insulting information associcated with it. But, the license alone
IS a reasonable compromise in some cases. With a FEW tweaks, I
believe that the GPLv3 could make everyone happy (except for those
with the very strongest religious fervor.)
>
> It also illustrates some of the valid portion of John's complaint about
> the GPL, which is that it discourages proprietary uses of software that
> *could* be used to raise money.
>
Exactamundo.
>
> Unfortunately, for his point, the TOG situation illustrates that a BSD
> license doesn't eliminate this problem.
>
Agreed. It gives only opportunity, but no license is going to solve
the problem without added innovation (development and marketing).
>
> I would contend that this needs to take place on a voluntary basis, as
> the alternatives get ugly. In other words, users of Linux (and OpenBSD,
> and FreeBSD, and NetBSD) that make significant use of X should feel
> *morally* obligated to contribute something to its development.
>
I agree. I do *buy* X servers and Motif libraries when it makes
resonable sense. It would also be very good if WC, Red Hat, Infomagic,
etc would contribute. If a free software project has reasonable assets,
then maybe they should also contribute. People who cash in on free
software should feel slightly obligated... I know that when I worked
on FreeBSD, I normally worked 40-60Hrs on FreeBSD, and perhaps 20-40Hrs
on work that wasn't related directly to FreeBSD. Sometimes people
helped me as a developer with resources. FreeBSD, for example,
doesn't have many assets itself (except for it's name), but mostly
distributes them (tools) to the developers (both core and non-core.)
>
> I would think it appropriate, if TOG needs more direct funding, for
> this to assortedly happen via:
> a) The XFree86 Project perhaps pursuing membership,
> b) Major Linux vendors that do substantial X-related work (e.g. - Red
> Hat, SuSE) or even others that thus far have merely been "users"
> (Caldera, PHT),
> c) Vendors of other OSes, such as Walnut Creek and the likes.
>
Yes.
>>
>>And you can get rich selling the works of others.
>>
>>Nifty, though it reeks of immoral to me.
>
> Evidently a different set of ethics.
>
Programmers DONT OFTEN "GET RICH!!!" If you live in the Bay area,
then making $120-$150K might be an okay (good) living, but if
you live where I live, you can make 1/2 that and live better.
One shouldn't compare NUMBERS, but compare lifestyles. Also, those
who "get rich" almost never JUST PROGRAM.
>
> What really annoys me is when these flame threads spring up in that some
> people are evidently unwilling to accept the notion of there being
> somewhat different ethos.
>
If it was true that people GOT RICH in a parasitic way based upon
my works, I would feel slightly used, but also philosophical
that I'd get a little credit somewhere. People (programmers) just
don't normally "get rich" when performing their trade. They might
"get rich" selling products and services. I am trying to support
the programmers' position in the matter, so they have a *better*
chance than they currently do. The chance of surviving isn't 100%.
(Unless you work in the Bay area :-).)
--
John | Never try to teach a pig to sing,
[EMAIL PROTECTED] | it makes one look stupid
[EMAIL PROTECTED] | and it irritates the pig.
------------------------------
From: [EMAIL PROTECTED] (Christopher B. Browne)
Crossposted-To: gnu.misc.discuss,comp.unix.advocacy,comp.unix.bsd.freebsd.misc
Subject: Re: Best Free Unix? (why FreeBSD?)
Reply-To: [EMAIL PROTECTED]
Date: Thu, 25 Feb 1999 07:50:13 GMT
On 25 Feb 1999 04:16:23 GMT, John S. Dyson <[EMAIL PROTECTED]> posted:
>In article <xY2B2.11342$[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Christopher Browne) writes:
>> I would contend that this needs to take place on a voluntary basis, as
>> the alternatives get ugly. In other words, users of Linux (and OpenBSD,
>> and FreeBSD, and NetBSD) that make significant use of X should feel
>> *morally* obligated to contribute something to its development.
>>
>I agree. I do *buy* X servers and Motif libraries when it makes
>resonable sense. It would also be very good if WC, Red Hat, Infomagic,
>etc would contribute. If a free software project has reasonable assets,
>then maybe they should also contribute. People who cash in on free
>software should feel slightly obligated... I know that when I worked
>on FreeBSD, I normally worked 40-60Hrs on FreeBSD, and perhaps 20-40Hrs
>on work that wasn't related directly to FreeBSD. Sometimes people
>helped me as a developer with resources. FreeBSD, for example,
>doesn't have many assets itself (except for it's name), but mostly
>distributes them (tools) to the developers (both core and non-core.)
Note that Red Hat and SuSE *have* made some significant contributions
to the continuing development of X in their sponsorship of development
of X servers for some popular graphics cards.
It could be argued both ways whether or not they are "living up to
their responsibilities;" certainly they seem to be doing better for X
than Walnut Creek, InfoMagic, and Caldera.
>> I would think it appropriate, if TOG needs more direct funding, for
>> this to assortedly happen via:
>> a) The XFree86 Project perhaps pursuing membership,
>> b) Major Linux vendors that do substantial X-related work (e.g. - Red
>> Hat, SuSE) or even others that thus far have merely been "users"
>> (Caldera, PHT),
>> c) Vendors of other OSes, such as Walnut Creek and the likes.
>>
>Yes.
>
>>>
>>>And you can get rich selling the works of others.
>>>
>>>Nifty, though it reeks of immoral to me.
>>
>> Evidently a different set of ethics.
>>
>Programmers DONT OFTEN "GET RICH!!!" If you live in the Bay area,
>then making $120-$150K might be an okay (good) living, but if
>you live where I live, you can make 1/2 that and live better.
>One shouldn't compare NUMBERS, but compare lifestyles. Also, those
>who "get rich" almost never JUST PROGRAM.
Which suggests that the "get rich" part has nothing to do with the
thread.
The ethical difference still stands, whether "riches" are considered
to be to grow a multi-million dollar fortune, or whether it merely
means the "riches" of making a reasonably good living.
>> What really annoys me is when these flame threads spring up in that some
>> people are evidently unwilling to accept the notion of there being
>> somewhat different ethos.
>>
>If it was true that people GOT RICH in a parasitic way based upon
>my works, I would feel slightly used, but also philosophical
>that I'd get a little credit somewhere. People (programmers) just
>don't normally "get rich" when performing their trade. They might
>"get rich" selling products and services. I am trying to support
>the programmers' position in the matter, so they have a *better*
>chance than they currently do. The chance of surviving isn't 100%.
>(Unless you work in the Bay area :-).)
One of my brothers bought a house last year in Texas. A
shirt-tail-kinsman bought one at about the same time in Cupertino at
about a factor-of-five difference in price for a house of the same
size.
I dunno that $120K is necessarily enough for Cupertino...
--
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer <http://www.hex.net/~cbbrowne/lsf.html>
[EMAIL PROTECTED] - "What have you contributed to free software today?..."
------------------------------
From: Edward Avis <[EMAIL PROTECTED]>
Crossposted-To: gnu.misc.discuss,comp.unix.advocacy,comp.unix.bsd.freebsd.misc
Subject: Re: Best Free Unix? (why FreeBSD?)
Date: Thu, 25 Feb 1999 16:10:53 +0000
Paul Hughett wrote:
>>>They would
>>>have to add VERY SIGNIFICANT IP to make $$$ (or ###, or whatever).
>
>>What country uses # as a currency? :-(
>
>In the US we call # a pound sign. Is that enough hint?
I know, I know. It was a rhetorical question.
The symbol # is called a pound sign in the US, but this refers to
pounds in weight (lb), not pounds the currency. So it's not a good
idea to use ### to mean 'a large amount of that currency with the
wierd curly symbol'. OTOH, it's no worse than 'UKPUKPUKP' :-)
--
Ed Avis
------------------------------
From: [EMAIL PROTECTED] (Richard E. Hawkins Esq.)
Crossposted-To: gnu.misc.discuss,comp.unix.advocacy,comp.unix.bsd.freebsd.misc
Subject: Re: Best Free Unix? (why FreeBSD?)
Date: 25 Feb 1999 10:13:32 -0600
In article <[EMAIL PROTECTED]>,
Edward Avis <[EMAIL PROTECTED]> wrote:
>John S. Dyson wrote:
>>They would
>>have to add VERY SIGNIFICANT IP to make $$$ (or ###, or whatever).
>What country uses # as a currency? :-(
Freedonia, for openers. But they're rather inconvienent to lug around.
New legislation has proposed allowing them to be printed on paper, or at
least displayed on LCD screens, rather than lugging around CRT's with
their attendant power supplies . . .
--
These opinions will not be those of ISU until it pays my retainer.
------------------------------
From: Ahrum Song <[EMAIL PROTECTED]>
Subject: Has anyone tried Applixware Office Suite 4.4.1?
Date: Fri, 26 Feb 1999 10:17:03 +1100
I am interested in how well Applixware word processing program can
handle (especially read/import) MS-Word97 documnents.
Thanks,
Ahrum
------------------------------
From: "Brett R. Rosselle" <[EMAIL PROTECTED]>
Subject: Re: How do u mount a ZipDrive?
Date: Thu, 25 Feb 1999 18:42:25 -0500
I always delete the sda4 partition and re-create it as sda1.
Brett
Marcus Siegl wrote:
>
> Hi Shawn
>
> > I have a friend who says it may be possible to mount a ZipDrive in Linux/Unix.
> > Is this possible?
>
> Sure. The commands depend on which Zip-Drive you have. For a
> Parallel-ZipDrive
> you need the ppa-Device compiled in your Kernel. For a SCSI-ZipDrive
> you need scsi-disk Support.
>
> > If it is can you give some idea on how to do it?
>
> If the Kernel can access the Zip-Drive, you can mount it like e.g.
>
> mount -t msdos /dev/sdd4 /zip
>
> For some reason you have to use the 4th patition. If you want to use
> ext2fs
> on your ZIP, you have to format the zipdisk first.
>
> Hope this helps
>
> Bye
> --
> Marcus Siegl
> Tel. : 07071-9457-842, Fax : 07071-9457-27
> Post : science + computing GmbH , Hagelocher Weg 71 , 72070 Tuebingen
> E-Mail: [EMAIL PROTECTED]
> #You know, what? I'm Happy # Droopy
------------------------------
From: Tamas Antal <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: rvplayer netscape, rvplayer..
Date: Thu, 25 Feb 1999 18:50:27 -0500
Hi,
Is there any way to launch rvplayer 5.0 and netscape from command line
with an URL?
tamas
------------------------------
From: Tamas Antal <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: launch rvplayer..
Date: Thu, 25 Feb 1999 18:51:28 -0500
> Hi,
>
> Is there any way to launch rvplayer 5.0 and netscape from command line
> with an URL?
>
> tamas
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: xosview with linux-2.2.2
Date: 25 Feb 1999 23:40:43 GMT
> Standard User wrote:
>>
>> Torsten Blank wrote:
>>
>> > xosview (version 1.7.0 and version 1.6.1) doesn't work with the kernel
>> > 2.2.2. It hangs, even before a window appears. Does someone know the
>> > reason?
>> >
>>
>> Hallo !
>> I have the same problem with version 1.6.0 !
>> Applying "strace xosview" I found out, that the
>> program open /proc/stat and then ... nothing !
>> I don't know how to work-around the problem.
>
I am running 2.2.2 with xosview-1.7.0 but you need to add the following
patch to xosview/linux/ The buffer size is simply too small for the /proc
entries that all. To add patch below, simply untar xosview-1.7.0 and
put this patchfile in it. Then "patch -p0 <./xosview-1.7.0-linux-2.2.2-patch"
cd to xosview-1.7.0, ./configure, and make, make install and you are
away.
My thanks goes to Jorge Nerin who pointed me in the right direction about
this problem.
Cheers, Grahame.
=======================================
cut here and put into filename: xosview-1.7.0-linux-2.2.2.patch
=======================================
diff -cr linux-original/cpumeter.cc linux/cpumeter.cc
*** linux-original/cpumeter.cc Thu Feb 25 09:17:18 1999
--- linux/cpumeter.cc Thu Feb 25 09:19:56 1999
***************
*** 49,55 ****
void CPUMeter::getcputime( void ){
total_ = 0;
! char tmp[256];
ifstream stats( STATFILENAME );
if ( !stats ){
--- 49,55 ----
void CPUMeter::getcputime( void ){
total_ = 0;
! char tmp[BUFFSIZE];
ifstream stats( STATFILENAME );
if ( !stats ){
***************
*** 59,65 ****
// read until we are at the right line.
for (int i = 0 ; i < _lineNum ; i++)
! stats.getline(tmp, 256);
stats >>tmp >>cputime_[cpuindex_][0]
>>cputime_[cpuindex_][1]
--- 59,65 ----
// read until we are at the right line.
for (int i = 0 ; i < _lineNum ; i++)
! stats.getline(tmp, BUFFSIZE);
stats >>tmp >>cputime_[cpuindex_][0]
>>cputime_[cpuindex_][1]
***************
*** 87,95 ****
}
int line = -1;
! char buf[256];
while (!stats.eof()){
! stats.getline(buf, 256);
if (!stats.eof()){
line++;
if (!strncmp(cpuID, buf, strlen(cpuID)) && buf[strlen(cpuID)] == ' ')
--- 87,95 ----
}
int line = -1;
! char buf[BUFFSIZE];
while (!stats.eof()){
! stats.getline(buf, BUFFSIZE);
if (!stats.eof()){
line++;
if (!strncmp(cpuID, buf, strlen(cpuID)) && buf[strlen(cpuID)] == ' ')
***************
*** 112,120 ****
}
int cpuCount = 0;
! char buf[256];
while (!stats.eof()){
! stats.getline(buf, 256);
if (!stats.eof()){
if (!strncmp(buf, "cpu", 3) && buf[3] != ' ')
cpuCount++;
--- 112,120 ----
}
int cpuCount = 0;
! char buf[BUFFSIZE];
while (!stats.eof()){
! stats.getline(buf, BUFFSIZE);
if (!stats.eof()){
if (!strncmp(buf, "cpu", 3) && buf[3] != ' ')
cpuCount++;
***************
*** 137,144 ****
}
const char *CPUMeter::toUpper(const char *str){
! static char buffer[256];
! strncpy(buffer, str, 256);
for (char *tmp = buffer ; *tmp != '\0' ; tmp++)
*tmp = toupper(*tmp);
--- 137,144 ----
}
const char *CPUMeter::toUpper(const char *str){
! static char buffer[BUFFSIZE];
! strncpy(buffer, str, BUFFSIZE);
for (char *tmp = buffer ; *tmp != '\0' ; tmp++)
*tmp = toupper(*tmp);
diff -cr linux-original/cpumeter.h linux/cpumeter.h
*** linux-original/cpumeter.h Thu Feb 25 09:17:18 1999
--- linux/cpumeter.h Thu Feb 25 09:17:54 1999
***************
*** 8,13 ****
--- 8,14 ----
//
#ifndef _CPUMETER_H_
#define _CPUMETER_H_
+ #define BUFFSIZE 512
#include "fieldmetergraph.h"
===============================================================
End pf Patch File
===============================================================
==============================================
Anti-Spamming Enabled in FQDN.
Email: gmkelly (at) zip (dot) com (dot) au
Sydney Linux User Group - Member
http://www.slug.org.au
==============================================
------------------------------
** 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.misc) 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-Misc Digest
******************************