Linux-Development-Sys Digest #846, Volume #7 Fri, 12 May 00 00:13:12 EDT
Contents:
Re: DNS problem (chris)
Re: 100 Mb thernet PCI on a 486 DX2 66MHz? (Johan Kullstam)
Other than console ("prabha")
Re: 100 Mb thernet PCI on a 486 DX2 66MHz? ([EMAIL PROTECTED])
Re: Driver programming: ioctls ("Michael Palme")
Re: inb/inb_p; outb/outb_p ("Michael Palme")
Re: 100 Mb thernet PCI on a 486 DX2 66MHz? (Johan Kullstam)
Re: 100 Mb thernet PCI on a 486 DX2 66MHz? (Stefaan A Eeckels)
Re: User and passwd (Jonathan Abbey)
Re: Problems with serial communication (Charles Blackburn)
Re: Problems with serial communication (Jens Kristian S�gaard)
Internal Robotics modem problem ("Boomer")
Re: Problems with serial communication (Kaz Kylheku)
depmod -a : not an ELF file ! ("Samuel Tran")
Kernel stats (Shaun Gervin)
How to create memory in ptraced child process w/o child source code ("Bill Chen")
Re: free credit card machine for your business (Dave Lugo)
Re: Internal Robotics modem problem (Peter Greenwood)
Re: RS-485 ("Gerald Waugh")
ANSI C & void main() ("Mark Graybill")
----------------------------------------------------------------------------
From: chris <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.misc
Subject: Re: DNS problem
Date: Fri, 12 May 2000 02:23:16 +0800
Reply-To: [EMAIL PROTECTED]
Hi Steve,
But there is no IP address entry in /var/log/messages, any other way to
check the IP address of the machine which submit the query?
Chris
Steve wrote:
> On Tue, 09 May 2000 00:35:06 +0800, chris wrote:
> >
> >--------------BBBAE3211C557E98E280F3DF
> >Content-Type: text/plain; charset=us-ascii
> >Content-Transfer-Encoding: 7bit
> >
> > Hi,
> >I have configure two dns servers, the servers seem working fine for
> >quite a few week except there are errors in /var/log/message:
> >Apr 9 12:11:21 server01 named[458]: sysquery: findns error (SERVFAIL)
> >on ?
> >Can any suggest what's the problem with my dns server, does this error
> >message casue harm ?
>
> You need to know what IP or Name it failed on, it could just be soeone
> trying to get to an unreachagle network.
>
> --
> Cheers
> Steve email mailto:[EMAIL PROTECTED]
>
> %HAV-A-NICEDAY Error not enough coffee 0 pps.
>
> web http://www.ndirect.co.uk/~sjlen/
>
> or http://start.at/zero-pps
>
> 9:40am up 12 days, 11:41, 2 users, load average: 1.08, 1.02, 1.00
------------------------------
From: Johan Kullstam <[EMAIL PROTECTED]>
Subject: Re: 100 Mb thernet PCI on a 486 DX2 66MHz?
Date: 11 May 2000 14:16:06 -0400
Zirong Wang <[EMAIL PROTECTED]> writes:
> Hi groupmates,
>
> Can someone tell me if a old 486 Dx2 66Mhz PC can support a 100 Mb/s
> ethernet PCI card ?
dunno. does it have PCI slots?
> or am I stuck with 10 Mb network if I want
> include my old 486 machine in the network?
get a hub/switch which supports simultaneous 10baseT and 100baseTx.
--
johan kullstam l72t00052
------------------------------
From: "prabha" <[EMAIL PROTECTED]>
Subject: Other than console
Date: Thu, 11 May 2000 12:34:37 -0700
Hi All,
Some commands are not working in terminals other than console on a RH 6.0
system. I know there is a file to change all these stuff, but don't know
where it is.
Can somebody help with this.
-prabha
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: 100 Mb thernet PCI on a 486 DX2 66MHz?
Date: Thu, 11 May 2000 20:36:53 +0100
Zirong Wang <[EMAIL PROTECTED]> wrote:
: Hi groupmates,
: Can someone tell me if a old 486 Dx2 66Mhz PC can support a 100 Mb/s
: ethernet PCI card ? or am I stuck with 10 Mb network if I want
: include my old 486 machine in the network?
If it has PCI slots, then yes. Lots of 486s had a different
standard called VLB (VESA local bus), and in that case, no,
unless you can find a VLB 100 Mbps card. Good luck.
If you're using a switch rather than a hub you should be
able to run each machine at its maximum capacity - ie. 10
or 100 Mbps as each supports. Of course switches are a
bit more pricey :-)
Rich.
--
[EMAIL PROTECTED] | Free email for life at: http://www.postmaster.co.uk/
BiblioTech Ltd, Unit 2 Piper Centre, 50 Carnwath Road, London, SW6 3EG.
+44 171 384 6917 | Click here to play XRacer: http://xracer.annexia.org/
--- Original message content Copyright � 2000 Richard Jones ---
------------------------------
From: "Michael Palme" <[EMAIL PROTECTED]>
Subject: Re: Driver programming: ioctls
Date: Thu, 11 May 2000 21:30:07 +0200
> Hi all,
>
> Does anybody know where I can find detailed informations about
> ioctls?
>
> Thanks,
>
> C�sar
good documentations are
printed:
rubini/linux device drivers oreilly
from linux documentation project:
ori pomerantz/linux kernel module programming guide
michael johnson/kernel hackers guide
------------------------------
From: "Michael Palme" <[EMAIL PROTECTED]>
Subject: Re: inb/inb_p; outb/outb_p
Date: Thu, 11 May 2000 21:29:23 +0200
> What is the difference between inb and inb_p? outb and oub_p? When
> should I be using one and not the other? There isn't a man page that
> describes these, and I couldn't find any relevant documentation either.
>
> Pankaj
the function with _p wait a little bit (it reads port 0x80)
after the I/O operation - thats
for the the use with older (slower) hardware (i.e. ISA)
you can change the length of the break through the macro
REALLY_SLOW_IO (or SLOW_IO_BY_JUMPING)
------------------------------
Subject: Re: 100 Mb thernet PCI on a 486 DX2 66MHz?
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: Thu, 11 May 2000 20:34:30 GMT
Zirong Wang <[EMAIL PROTECTED]> writes:
> Hi groupmates,
>
> Can someone tell me if a old 486 Dx2 66Mhz PC can support a 100 Mb/s
> ethernet PCI card ?
does it have PCI slots?
> or am I stuck with 10 Mb network if I want
> include my old 486 machine in the network?
get a hub which supports both 10baseT and 100baseTx simultaneously.
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!
------------------------------
From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Subject: Re: 100 Mb thernet PCI on a 486 DX2 66MHz?
Date: Thu, 11 May 2000 23:32:32 +0200
In article <[EMAIL PROTECTED]>,
Zirong Wang <[EMAIL PROTECTED]> writes:
>
> Can someone tell me if a old 486 Dx2 66Mhz PC can support a 100 Mb/s
> ethernet PCI card ? or am I stuck with 10 Mb network if I want
> include my old 486 machine in the network?
Sure it can take it. Whether a DX2/66 can sustain 10MB/s?
That'll depend on the card, but I guess it might be stressed
with the cheap ones (10MB/s was common for fast SCSI drives
used in those days). In any case, get a 10/100Mb/s card,
and a 10/100Mb/s autosensing hub (5-8 port types are really
cheap), and you can run both speeds together.
Take care,
--
Stefaan
--
--PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)--
Ninety-Ninety Rule of Project Schedules:
The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.
------------------------------
From: [EMAIL PROTECTED] (Jonathan Abbey)
Subject: Re: User and passwd
Date: 11 May 2000 17:04:38 -0500
In article <[EMAIL PROTECTED]>, Stephane Negri <[EMAIL PROTECTED]> wrote:
| Hi all,
|
| I m creating a 'User management tool', so I need to know all the created
| user and all their relative information (uid, gid, shell, ...). An other
| thing I need is to be able to modify their passwd (the tool can set
| passwd). Ok so my problem is: I didn t find any system call that return
| a list or en entry of user database (except for getpwent) AND any system
| call that can modify (set) en entry in the database. And an other
| problem is that the mechanism has to work with passwd, shadow or NIS
| database.
|
| Any help, please ???
Salut, Stephane. Malheureusement, there is no standard API for making
changes to the user's directory information that will automatically
map into NIS, /etc/passwd/ and /etc/shadow, as needed. NIS doesn't
even have any API mechanisms for submitting change requests, aside
from the NIS password daemon, which can only handle a few different
kinds of changes.
We have produced a metadirectory, called Ganymede, that can do this
for you, but it has a good amount of overhead, and is designed to
support a network of thousands of users and thousands of machines.
The way that it works is that a Java program passes a request to the
Ganymede server and makes changes to the server's object database.
The server then runs a background thread which dumps the user
information from the database out to NIS, Samba, Windows NT, and so
on, as needed.
Without some kind of central service that can react to directory
information change requests in this fashion, you're going to be stuck
coding directly to the different change mechanisms.
| Thx,
|
| Stephane
--
===============================================================================
Jonathan Abbey [EMAIL PROTECTED]
Applied Research Laboratories The University of Texas at Austin
Ganymede, a GPL'ed metadirectory for UNIX http://www.arlut.utexas.edu/gash2
------------------------------
From: [EMAIL PROTECTED] (Charles Blackburn)
Subject: Re: Problems with serial communication
Date: Thu, 11 May 2000 23:10:02 +0100
Reply-To: [EMAIL PROTECTED]
On Wed, 10 May 2000 23:25:53 GMT, Kaz Kylheku wrote:
>> tio.c_cflag = SMS_BAUD | CRTSCTS | CS8 | CREAD | CLOCAL;
>Hmm, the flag to set up CTS/RTS handshaking is conspicuously absent.
Silly question, what's the second flag for then???
--
Charles Blackburn -=- Remove NOSPAM to email a reply.
Summerfield Technology Limited - SuSE Linux Reseller & Birmingham L.U.G sponsor
[EMAIL PROTECTED]
[EMAIL PROTECTED]
6:03pm up 1 day, 22:37, 2 users, load average: 0.05, 0.04, 0.01
------------------------------
From: [EMAIL PROTECTED] (Jens Kristian S�gaard)
Subject: Re: Problems with serial communication
Date: 12 May 2000 00:18:34 +0200
[EMAIL PROTECTED] (Kaz Kylheku) writes:
> >I initialize the port like this:
> > tio.c_cflag = SMS_BAUD | CRTSCTS | CS8 | CREAD | CLOCAL;
> Hmm, the flag to set up CTS/RTS handshaking is conspicuously absent.
Eh? I used CRTSCTS - shouldn't that be enough?
> > while( ((res = read( fd, &c, 1) > 0)) && (count<1023) && (c != '\n') )
> > inputBuffer[count++] = c;
> Issuing a system call for each input character is horribly inefficient. This
> approach is utterly incompatible with your requirement for high performance.
I know; but it is only the _first_ characters of a line that goes
missing. This is the part I don't understand.
I tried using read() with for example a 100 character array. It didn't
help on the problem, sadly :-(
Do you have a good idea? (thanks for your initial response)
--
Jens Kristian S�gaard,
[EMAIL PROTECTED] -- http://www.jksoegaard.dk/
S�ger du noget? -- http://www.google.com/
echo|perl -ple'$_+=4E-6*!int rand()**2+rand()**2while$i++-1E6'
------------------------------
From: "Boomer" <[EMAIL PROTECTED]>
Subject: Internal Robotics modem problem
Date: Thu, 11 May 2000 18:42:57 -0700
I am running Corel Linux OS Deluxe. Corel Linux is powered by the Debian
Linux distribution and a set of complimentary tools & utilities from GNU.
I tried to setup a Internal Robotics modem
(33KC) on COM2 using the network / dial-up option
When I connect to the ISP,
I get Modem ready, Dialing,
Logging on to network.
Then I get Linux ERROR:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The PPPD daemon died unexpectedly!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How do I fix this problem?
Hardware:
150 MHz Pentium CPU, 13 GB harddrive,
Using External Robotics Modem on COM2.
ISP is IWAYNET (Local ISP)
Primary DNS 198-30-29-7
Secondary DNS 198-30-29-8
Thank You for any help or suggestions.
Bert Edwards
e-mail: [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Problems with serial communication
Reply-To: [EMAIL PROTECTED]
Date: Thu, 11 May 2000 23:32:59 GMT
On Thu, 11 May 2000 23:10:02 +0100, Charles Blackburn
<[EMAIL PROTECTED]> wrote:
>On Wed, 10 May 2000 23:25:53 GMT, Kaz Kylheku wrote:
>>> tio.c_cflag = SMS_BAUD | CRTSCTS | CS8 | CREAD | CLOCAL;
>>Hmm, the flag to set up CTS/RTS handshaking is conspicuously absent.
>
>Silly question, what's the second flag for then???
Argh, my retinal capture buffer is dropping bits. :)
I looked over those flags three times and didn't see the CRTSCTS
I was looking for.
--
#exclude <windows.h>
------------------------------
From: "Samuel Tran" <[EMAIL PROTECTED]>
Subject: depmod -a : not an ELF file !
Date: Wed, 10 May 2000 17:28:52 GMT
Hello,
I was using DEBIAN 2.1R4.
Then I upgraded my system using dselect and apt (frozen version).
My /etc/conf.modules has been renamed to /etc/conf.modules.old.
And now I have the file /etc/modules.conf.
Since that time no module seems to be loaded at boot time.
When I type "depmod -a" I got the message : "depmod : not an ELF file".
I would appreciate any help.
Thank you.
Sam
------------------------------
Date: Fri, 12 May 2000 11:10:57 +1000
From: Shaun Gervin <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Kernel stats
Hi all,
What is the best way to profile a linux kernel while running large
workloads (like, for example DBs). I need find things like how
frequently a function is called, how long it takes to execute etc etc. I
would like to get this info for all kernel, driver and if possible a
selected list of shared library functions. (Note: I'm not a linux
expert)
Any comments welcome, please respond to mail address
[EMAIL PROTECTED]
thanks
Patrick
------------------------------
From: "Bill Chen" <[EMAIL PROTECTED]>
Subject: How to create memory in ptraced child process w/o child source code
Date: Thu, 11 May 2000 18:43:39 -0700
I am trying to allocate a new segment of memory for the child process by way
of the controlling parent process under the ptrace environment. The
underlying premise is that I do not want to change the child's source code
(assume source code is not available).
The following peudo code should give an idea of what I want to do.
main()
{
fork()
/* child */
ptrace(PTRACEME)
exec() /* execute the real child */
/* parent */
wait()
create memory in child's process and write to it.
ptrace(DETACH)
}
If I can changed the child's source, I can do a shmget() and shmctl().
However, the child's source code is not available.
Can someone help?
------------------------------
Date: Thu, 11 May 2000 23:04:38 -0400
From: Dave Lugo <[EMAIL PROTECTED]>
Subject: Re: free credit card machine for your business
[EMAIL PROTECTED] wrote:
>
> Advantage Banking Services is giving a free credit card machine
> with a printer to all new accounts. Sign up with Advantage Banking
> Services and receive a new credit card machine with a printer to
> use for free for as long as you like.
> We are also ofering a Web Link/Virtual Terminal package for all
> web site based businesses. This package enables your businesses
> web site to accept and process credit card sales automatically and
> in real time. With this package your web site will be able to run itself
> while serving any number of clients simultaneously. This lets your
> web site work for you.
> All of our equipment is brand new and state of the art. Whether you
> are a web site based business or a retail merchant we have the card
> sale processing solution for you.
> Do not buy a machine for $400-$1,200 or get tied in to an
> expensive four year lease for your equipment. Use our machine for
> free for as long as you like, it's just that simple. Advantage Banking
> Services is changing the credit card machine industry by eliminating
> equipment purchasing and leasing.
> The time is right to enable your business to accept credit cards.
> Your competition accepts credit cards, do you?
> We offer excellent rates:
> 1.75% retail (card present and swiped)
> 2.20% Internet/mail-order/telephone-order (card not present)
> Applying is free and easy. To receive your application or to learn
> more about what Advantage Banking Services can do to help your
> business grow call our offices today at 440-885-0896.
> Advantage Banking Services provides banking solutions to
> business because money matters. If your money maters use
> Advantage Banking Services.
the above spammer is:
www.creditcardsystems.net
Complaints go to the upstream providers:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
The sh*theads have spammed large parts of usenet twice in the past two
days.
--
========================================================
Dave Lugo [EMAIL PROTECTED] LC Unit #260 TINLC
Have you hugged your firewall today? No spam, thanks.
========================================================
Are you the police? . . . . No ma'am, we're sysadmins.
------------------------------
From: [EMAIL PROTECTED] (Peter Greenwood)
Crossposted-To: comp.os.linux.networking
Subject: Re: Internal Robotics modem problem
Date: 12 May 2000 00:42:58 GMT
In article <8ffdab$rl3$[EMAIL PROTECTED]>,
"Boomer" <[EMAIL PROTECTED]> writes:
>I am running Corel Linux OS Deluxe. Corel Linux is powered by the Debian
>Linux distribution and a set of complimentary tools & utilities from GNU.
>I tried to setup a Internal Robotics modem
>(33KC) on COM2 using the network / dial-up option
>When I connect to the ISP,
>I get Modem ready, Dialing,
>Logging on to network.
>Then I get Linux ERROR:
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>The PPPD daemon died unexpectedly!
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>How do I fix this problem?
>Hardware:
>150 MHz Pentium CPU, 13 GB harddrive,
>Using External Robotics Modem on COM2.
>ISP is IWAYNET (Local ISP)
>Primary DNS 198-30-29-7
>Secondary DNS 198-30-29-8
>Thank You for any help or suggestions.
>Bert Edwards
>e-mail: [EMAIL PROTECTED]
You might try looking in the file /var/log/messages or similar (I don't
know Corel - look around in that directory for a relevant file). There may
be some messages from pppd that would give you more info.
You might also try asking in comp.os.linux.networking - I'll crosspost
this and set followups accordingly.
--
Peter Greenwood [EMAIL PROTECTED]
------------------------------
From: "Gerald Waugh" <[EMAIL PROTECTED]>
Subject: Re: RS-485
Date: Thu, 11 May 2000 20:03:09 -0400
> The last person to admit to changing the serial driver was Ted T'so,
> and his name is missing from the MAINTAINERS file now. He was at MIT,
> but I don't have an address. You might ask him for an opinion.
>
you will find Ted ->>> http://serial.sourceforge.net/ and he is at MIT
[EMAIL PROTECTED]
------------------------------
Reply-To: "Mark Graybill" <[EMAIL PROTECTED]>
From: "Mark Graybill" <[EMAIL PROTECTED]>
Subject: ANSI C & void main()
Date: Fri, 12 May 2000 03:41:31 GMT
There's been a heated discussion concerning whether void main() is allowed
by the current ANSI C standard, which brought to the group some color.
The discussion has served two purposes for me: 1) My learning of void main()
being migrated out of the ANSI C standard, and 2) aided a research project
in psychology, although I have yet to receive approval for it.
Since my C days during my undergraduate studies were pre-ANSI standard, and
figuring my memory was failing, I checked with the Computer Science and
Engineering department at the University of Minnesota, and found that the
original standard did allow void main().
I doubt the new C standard includes it, which is one reason why I didn't pay
the large fee for obtaining a copy (the other is I don't program in C
anymore.) The C++ standard of course does not allow it (because one of the
goals is stronger typing), and as an after thought to retrospect, I
remembered the original post included cout << "Hello World.". I then
realized that I should have referenced my copy of the C++ standard, not the
C books I had (or my memory on ANSI C.)
As far as undefined behavior, which is not defined as behavior not advocated
by ANSI standards but rather behavior not yet observed, the behavior of
using void main() is defined if it is consistently observed in a large
sample of popular compilers and platforms.
One outcome of this discussion is the realization that if I wish to
contribute to Linux development, it won't be through this forum.
Best,
Mark
------------------------------
** 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
******************************