Linux-Development-Sys Digest #319, Volume #6 Fri, 22 Jan 99 22:14:13 EST
Contents:
Re: How do apps access time_t? (Y2K+38 expiry question.) ("Richard Krehbiel")
Re: K6-400 "kernel paging request" errors (=?iso-8859-1?Q?Jos=E9=20Ure=F1a?=)
MIDI (David L. Bilbey)
PD drivers ([EMAIL PROTECTED])
Re: kernel: VFS: No free inodes - contact Linus (David T. Blake)
Re: How to write cgi for changing user's password (Juergen Heinzl)
Re: Error in un.h ? (Juergen Heinzl)
Re: kernel: VFS: No free inodes - contact Linus (Matt Corddry)
Re: INT13 disk driver (Tim Smith)
Re: pre8, modules and problem with aha152x (Peter Ross)
My GCC does not recognize "__extension__" keyword in header files ("WangQiang")
scsi emulation for ATAPI CDROMS (Frank Hale)
Re: My GCC does not recognize "__extension__" keyword in header files (Mumit Khan)
Re: Why I'm dumping Linux, going back to Windblows (jedi)
Re: small fonts on tty (Ingo Saitz)
----------------------------------------------------------------------------
From: "Richard Krehbiel" <[EMAIL PROTECTED]>
Subject: Re: How do apps access time_t? (Y2K+38 expiry question.)
Date: Thu, 21 Jan 1999 08:33:56 -0500
Bloody Viking wrote in message <786k1g$1o2$[EMAIL PROTECTED]>...
>
>I'm curious, how do UNIX apps access time_t to get the date? I'm curious
>about this in relation to the Y2K+38 expiry of time_t and I'd like to try
>my hand at remediation. I've got 40 years to figure it out! :) Are there
>any Linux time_t remediation packages?
The way you do this *now* in your code is to treat time_t as as C89
intended: opaque. You don't know what data type it is, except that it's
some kind of arithmetic type. Don't save time_t values in files or
databases, don't transmit them, don't print them.
Now your code is insulated. When the implementation resolves the 2038
problem by changing the type of time_t, your code will fall in line with
just a recompile. time_t will become long long/unsigned long/double, and
your code will just work.
BTW this works for code in any OS, not just Linux.
--
Richard Krehbiel, Kastle Systems, Arlington VA USA
[EMAIL PROTECTED] (work) or [EMAIL PROTECTED] (personal)
------------------------------
From: =?iso-8859-1?Q?Jos=E9=20Ure=F1a?= <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel,comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: K6-400 "kernel paging request" errors
Date: Fri, 22 Jan 1999 13:46:05 -0500
==============E52B3D894F2513BB9980A4C4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
When using Heat Tranfer compound (grease), remember to remove any excess from
the sides and walls of the heat sink. (the Radiator)
The compound tends to collect dust and turns into a kind of insulator that
prevents the heat from excaping the heat sink.
"David R. Bergstein" wrote:
> Larry wrote:
> >
> > On Wed, 20 Jan 1999 08:13:13 -0500, David R. Bergstein <[EMAIL PROTECTED]>
> > wrote:
> > >If it helps at all, I am also seeing similar paging request errors under
> > >linux 2.0.36 with an AMD K6-200 and 128MB RAM. I will need to change
> > >my syslog.conf to obtain a dump next time it happens (will post).
> > >
> > I was getting this type of error with a cyrix p166 and finally took the
> > processor fan off and cleaned it and the fins and put it back together and
> > VOILA, it's been working famously ever since.
>
> That is very interesting - I did use a high quality heat sink grease
> when I installed the heat sink / CPU fan unit, but that was over a year
> & 1/2 ago. I may try what you suggest.
>
> Thanks,
>
> - David
>
> --
> David R. Bergstein
> Systems Engineer and Blues Musician
> Rockville, MD
> ---------------------------------------------------------------------------
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> SE & Blues Musician Home Page Heart of Blue - Playin' the Blues for
> You!
> http://www.erols.com/dbergst http://heartofblue.com
> ---------------------------------------------------------------------------
==============E52B3D894F2513BB9980A4C4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
When using Heat Tranfer compound (grease), remember to remove any excess
from the sides and walls of the heat sink. (the Radiator)
<br>The compound tends to collect dust and turns into a kind of insulator
that prevents the heat from excaping the heat sink.
<p>"David R. Bergstein" wrote:
<blockquote TYPE=CITE>Larry wrote:
<br>>
<br>> On Wed, 20 Jan 1999 08:13:13 -0500, David R. Bergstein <[EMAIL PROTECTED]>
<br>> wrote:
<br>> >If it helps at all, I am also seeing similar paging request errors
under
<br>> >linux 2.0.36 with an AMD K6-200 and 128MB RAM. I will need
to change
<br>> >my syslog.conf to obtain a dump next time it happens (will post).
<br>> >
<br>> I was getting this type of error with a cyrix p166 and finally took
the
<br>> processor fan off and cleaned it and the fins and put it back together
and
<br>> VOILA, it's been working famously ever since.
<p>That is very interesting - I did use a high quality heat sink grease
<br>when I installed the heat sink / CPU fan unit, but that was over a
year
<br>& 1/2 ago. I may try what you suggest.
<p>Thanks,
<p>- David
<p>--
<br>David R. Bergstein
<br>Systems Engineer and Blues Musician
<br>Rockville, MD
<br>---------------------------------------------------------------------------
<br>[EMAIL PROTECTED]
[EMAIL PROTECTED]
<br>SE & Blues Musician Home Page Heart of Blue - Playin'
the Blues for
<br>You!
<br><a
href="http://www.erols.com/dbergst">http://www.erols.com/dbergst</a>
<a href="http://heartofblue.com">http://heartofblue.com</a>
<br>---------------------------------------------------------------------------</blockquote>
</html>
==============E52B3D894F2513BB9980A4C4==
------------------------------
From: David L. Bilbey <[EMAIL PROTECTED]>
Subject: MIDI
Date: 21 Jan 1999 15:30:08 GMT
I apologize if this isn't the right group, it's the closes thing I could find that my
server carries. Anyway, I just recompiled my kernel to support MIDI, and in doing so
gained the /dev/midi00-/dev/midi02 devices, yet I still can't seem to get MIDI working
(more specifically, I'm using Xwinallegro, and when I attempt to initialize a MIDI
driver, it doesn't complain, but tells me that I won't get any sound...and it is
correct: I get no MIDI. Digitial sound works fine.)
Any ideas?
Bilbey
p.s. I'm running RH5.2 with 2.0.36
------------------------------
From: [EMAIL PROTECTED]
Subject: PD drivers
Date: Thu, 21 Jan 1999 06:36:31 -0800
I need help mounting my IDE pd drive on linux Red Hat 5.2
I read about one SCSI Emulator module and then moun the pd or pcd module.
But what are the scsi emulator module???
thanks for all...
*** Posted from RemarQ - http://www.remarq.com - Discussions Start Here (tm) ***
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: kernel: VFS: No free inodes - contact Linus
Date: 21 Jan 1999 06:49:17 -0800
Matt Corddry <[EMAIL PROTECTED]> writes:
>The status lines in 'top' looked like this as it was failing:
>
>84 processes: 41 sleeping, 43 running, 0 zombie, 0 stopped
>CPU states: 0.9% user, 21.3% system, 0.0% nice, 80.9% idle
>Mem: 515440K av, 507048K used, 8392K free, 83040K shrd, 70420K buff
>Swap: 128516K av, 88K used, 128428K free 7348K
>cached
>
>If anyone knows what's going on, I'd love some help here!
>
>thanks in advance
You are blowing your RAM out.
Looks more like a chat server problem than a linux problem.
You eat 500 M RAM, then blow into swap. The machine crawls
to a halt. Finally the 100 M swap goes, and your system
goes boom.
If you ever think you are going into swap, make certain you
don't run out of it. And trace the memory usage of that
chat server - it seems like a pig. You will probably find it
useful to limit the maximum number of people who can connect.
Or more RAM, or a different server.
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: How to write cgi for changing user's password
Date: Fri, 22 Jan 1999 21:18:12 GMT
In article <[EMAIL PROTECTED]>, Dirk Nuyens wrote:
[...]
>krzysztof samsonowicz wrote:
>
>> Can anybody tell me how to write cgi (e.g. in c++) that will change user's
>> password. My httpd works as "nobody"
>> Help me, thanks in advance
>> chris
>
>well hope the httpd is not running on the internet....
>you just have to write a web page with three input boxes:
> login
> passwd
[...]
>script be owned by root and set it suid (do 'chown root script ' and 'chmod
>+s script') that should do the trick
>
>but I won't do it that way...
You might take a look here ...
http://reference.perl.com
... and might be to the Penguin module helps here (nothing to do with Linux
though) since it allows secure execution on other machines.
BTW, please switch off your HTML posting stuff somehow, thanks !!
Good luck,
Juergen
--
\ Real name : J�rgen Heinzl \ no flames /
\ EMail Private : [EMAIL PROTECTED] \ send money instead /
\ Phone Private : +44 181-332 0750 \ /
------------------------------
From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: Error in un.h ?
Date: Fri, 22 Jan 1999 21:18:13 GMT
In article <[EMAIL PROTECTED]>, Frank Kehren wrote:
>Hello,
>
>my Compiler (pgcc-2.91.51 on Pentium) complains when including the file
>un.h from the linux kernel (/usr/src/linux/include/linux/un.h,
>SuSE-Kernel 2.0.36),
>that "ANSI C++ forbids zero-size array `cmsg_data'".
>
>Does anybody know, why they use an array with length 0 ?
They do not in the latest, but constructs like this are a GNU extension. At
times you will see code like this ...
struct foo
{
struct foo *p;
struct foo *q;
char data[1];
};
... and now you can do a ...
struct foo *pp = (struct foo *)malloc( sizeof( struct foo ) + datasize - 1);
... and copy straight into data, no need for a void *.
Using an array of size 0 spares you the -1 and one dummy byte if not necessary,
but yes, ANSI / ISO does not allow it.
I guess pgcc too just warns you (?)
Juergen
--
\ Real name : J�rgen Heinzl \ no flames /
\ EMail Private : [EMAIL PROTECTED] \ send money instead /
\ Phone Private : +44 181-332 0750 \ /
------------------------------
Date: Sat, 23 Jan 1999 00:28:24 -0800
From: Matt Corddry <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux
Subject: Re: kernel: VFS: No free inodes - contact Linus
Hmmm... Well, I crashed it again (easy to do -- I'm simulating clients).
Here's the output from 'df -i' when it crashed:
Filesystem Inodes IUsed IFree %IUsed Mounted on
/dev/sda1 1081344 30952 1050392 3% /
So I'm not running out of inodes. However, the running out of memory
makes _more_ sense, although according to 'top', I still have some
buffers left, and it doesn't appear to be hitting swap too much.
I'll try the 2.2.0-preX kernel and see if that makes a difference.
Thanks to all who have helped with this!
matt corddry
Ingo Saitz wrote:
>
> MoiN
>
> On Thu, 21 Jan 1999, Matt Corddry wrote:
>
> > Well... the subject really explains my problem. I get hundreds of
> > thousands of these at console and in /var/log/messages.
>
> It seems your filesystem has gone out of inodes. This can happen if you
> use to have a lot of small files in one partition. The solution is to find
> the dirs which contain many small files (usually /tmp or under /var) and
> increase the inodes in that partition. ext2fs defaults to one inode per
> 4096 bytes of drive space. So you sould use "mkfs.ext2 -i 2048" or even
> "mkfs.ext2 -i 1024" on that partition *back up your data first!*
>
> Ingo
> --
> Starting Java...
------------------------------
From: [EMAIL PROTECTED] (Tim Smith)
Subject: Re: INT13 disk driver
Date: 21 Jan 1999 07:34:04 -0800
Villy Kruse <[EMAIL PROTECTED]> wrote:
>For real non-standard stuff you are really on your own. The INT13 interface
>cannot be used as it needs to run in old 8088 mode wheras linux needs to run
>in real 80386 aka protected mode.
This is incorrect. A protected mode operating system can make use of
INT 13h by creating a V86 mode task to make the INT 13h calls. OS/2
does this if it doesn't have a protected mode driver for your disk
controller, for example.
--Tim Smith
------------------------------
From: Peter Ross <[EMAIL PROTECTED]>
Subject: Re: pre8, modules and problem with aha152x
Date: 22 Jan 1999 22:42:18 +1100
Peter Ross <[EMAIL PROTECTED]> writes:
>Finally you should no longer have scsi_mod in the 2.2.x series of
>kernels. Well at least I don't have it.
And there is a reason why I don't have it, because I complied that part
of the kernel as a non-module. You definately should have a scsi_mod
after looking at my kernel setup.
Pete.
--
+----------------------------------------------------------------------+
| Peter Ross M Sci/Eng Melbourne Uni (change - to . for email) |
| email: [EMAIL PROTECTED] WWW: http://www.cs.mu.oz.au/~petdr |
+----------------------------------------------------------------------+
------------------------------
From: "WangQiang" <[EMAIL PROTECTED]>
Subject: My GCC does not recognize "__extension__" keyword in header files
Date: Fri, 22 Jan 1999 00:53:52 +0800
Hi, All
I run cross a very strange problem.
I just updated my gcc. Now in my Linux system I have:
gcc-2.7.2.3-14
gcc-c++-2.7.2.3-8
libg++-2.7.2.8-9
libstdc++-2.8.0-14
libstdc++-devel-2.8.0-14
glibc-2.0.7-29
glibc-devel-2.0.7-29
After my upgrading, I found that my compilers (gcc or g++) does not
recognize the "__extension__" keyword in any header files, for example, I
code a simplest piece of program which has only a #include directive:
nothing.cpp
#include <iostream.h>
<EOF>
Then I tried to compile it by using:
$ g++ -S nothing.cpp
I got the folling error messages:
iostream.h:91: parse error before `__extension__'
iostream.h:208: parse error before `__extension__'
Then I went into my /usr/include/g++ directory, and modified the iostream.h
(of course I made the modification on a temporary copy of the file) by
removing all the "__extension__" keyword. Then everything became OK.
Can anyone give me some idea of this problem?
Thank you.
I still have some other questions which can not be found in FAQ, pls try to
answer any one of them:
1. According to the man page of the g++, /usr/bin/g++ is script of gcc. But
as far as what in my system, g++ (from gcc-g++-2.7.2.3-8) is a binary
executable file.
2. Why is there no gcc-g++ package in RedHat 5.1 and 5.2. Can I just use
gcc(2.7.2.3-14) to compile my C++ code? (gcc now includes both the front and
the back end of C++ compiler?)
3. What is the different between the libg++ and the libstdc++? Do I need to
install both of them?
4. gcc-2.7.2.3-14 does not include the cpp's (C preprocessor) info docs.
Where can i find them?
Thanks again for your answering any of the above questions?
WangQiang
[EMAIL PROTECTED]
------------------------------
From: Frank Hale <[EMAIL PROTECTED]>
Subject: scsi emulation for ATAPI CDROMS
Date: 23 Jan 1999 01:07:38 GMT
I am using scsi emulation so that I can get my (ATAPI) cd-writer to
work. I also have another cd drive that I use it on. When I go to mount
a cd for the first time it will tell me this.
ide-scsi: The scsi wants to send us more data than expected -
discarding data
Unable to identify CD-ROM format.
And it won't mount the first time. I have to umount and mount again to
get to my cd. Does anyone know why it does this? It works fine after it
does this, and it will only do it the first time you mount your cd, any
other time and it will mount fine.
--
From: Frank Hale
Email: [EMAIL PROTECTED]
ICQ: 7205161
Website: http://www.franksstuff.com/
"100% Pure Linux"
------------------------------
From: [EMAIL PROTECTED] (Mumit Khan)
Subject: Re: My GCC does not recognize "__extension__" keyword in header files
Date: 21 Jan 1999 18:16:03 GMT
In article <787n73$ch2$[EMAIL PROTECTED]>,
WangQiang <[EMAIL PROTECTED]> wrote:
>Hi, All
>
>I run cross a very strange problem.
>I just updated my gcc. Now in my Linux system I have:
>gcc-2.7.2.3-14
>gcc-c++-2.7.2.3-8
>libg++-2.7.2.8-9
>libstdc++-2.8.0-14
>libstdc++-devel-2.8.0-14
Not a strange problem at all! You're mixing newer libstdc++ with older
gcc/c++. Won't work.
Regards,
Mumit
------------------------------
From: [EMAIL PROTECTED] (jedi)
Crossposted-To: alt.os.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Why I'm dumping Linux, going back to Windblows
Date: Thu, 21 Jan 1999 10:09:33 -0800
On Thu, 21 Jan 1999 03:49:06 -0500, David P. Greenberg <[EMAIL PROTECTED]>
wrote:
>OK, so I typed man bash, and you're right. tons of info. It would probably
>take you a week to read through it all. It'll tell you everything but what
>you want to know. I'm not dumping Linux. I'm too stubborn, and deep down I
>believe that some day in the distant future, I'll be able to do more than
>logon and startx. Here a just a few of the things that have me totally
>switched. 1) How come, when I change a bunch of things in X and reeboot,
>everything comes back the way it was? 2) why is it that something that
That's a bit vague.
>worked yesterday, doesn't work today, but will probably work fine
Personally never had this sort of thing happen
on any of the 9 Unixen I've ever used.
>tommorow? 3) How does one go about creating user accounts that can do
>anything. IE, if I use useradd and create an account, and go into that
ANY of the account creation utilities, the CLI one the
redhat one the linuxconf one...
It will work across Unixen as well...
[deletia]
--
Herding Humans ~ Herding Cats
Neither will do a thing unless they really want to, or |||
is coerced to the point where it will scratch your eyes out / | \
as soon as your grip slips.
In search of sane PPP docs? Try http://penguin.lvcm.com
------------------------------
From: Ingo Saitz <[EMAIL PROTECTED]>
Subject: Re: small fonts on tty
Date: Thu, 21 Jan 1999 19:29:39 +0100
MoiN
On 11 Jan 1999, Jan Andres wrote:
> There's also some way to tell the kernel to use another video mode via
> kernel parameters, but I don't know about that.
vga=<vidmode> or vga=ask
Ingo
--
Starting Java...
------------------------------
** 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
******************************