Linux-Development-Sys Digest #859, Volume #7 Mon, 15 May 00 23:13:13 EDT
Contents:
ANSI C++ and void main (Kaz Kylheku)
Re: udp socket in a kernel module? (Travis Hein)
Re: Router Bootdisk (Chetan Ahuja)
Re: Strange lines when "free" is typed in console. (Paul Kimoto)
Re: Linux Driver Development ("La Onda")
Re: Linux compared to Windows 2000 (David Steuber)
Re: ANSI C++ and void main (Don Waugaman)
Weird behavior of dual-boot Tyan S1854 (Jerry Natowitz)
Re: Linux Driver Development (bill davidsen)
IP to MAC address (Ravi)
Re: Router Bootdisk (Alex)
Re: Need input on developing a unified configuration program for linux (Christopher
Browne)
Re: binary compression -- good or bad? (Christopher Browne)
Re: Need input on developing a unified configuration program for linux (Alexander
Viro)
Re: Linux Driver Development (Ben Lull)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: ANSI C++ and void main
Reply-To: [EMAIL PROTECTED]
Date: Mon, 15 May 2000 18:24:07 GMT
On Mon, 15 May 2000 02:31:45 GMT, Mark Graybill <[EMAIL PROTECTED]> wrote:
>they will have seminars and courses available. Poppycock! There is no such
>thing. I think it is you who are desperate (although I don't know why), and
>you have a problem with being wrong.
I'm only wrong in the sense that you switched horses in mid-stream and
started talking about C++, whereas I have been speaking only about ANSI C,
as implied by the subject line I have been using, and the articles
to which I have been replying have been using.
>>Let's look at a draft of C9X (WG14/N843, August 3, 1998)
>>which is probably very close to the one that was approved by ISO
>>as the 1999 definition of C:
>
>
>The issue is one of C++ standards, not C.
Okay, since you didn't find that useful, I have created a similar
interpretation for C++ using the C++ Draft Working Paper. You may want to chase
down the exact references in your copy of the approved standard.
To stop wasting bandwidth here with off topic posts, I have decided to
throw it onto a web page.
http://users.footprints.net/~kaz/cppvoidmain.html
--
#exclude <windows.h>
------------------------------
From: Travis Hein <[EMAIL PROTECTED]>
Subject: Re: udp socket in a kernel module?
Date: Mon, 15 May 2000 14:15:22 -0400
> Tnx
It seems to look like nfs server is based on the sun rpc module, so if i =
can get my
hands into using it, i can directly make use of the sun rpc module.
Would you know of any areas of how to's for using the sunrpc?
>
> It is possible. Take a look at the kernel NFS server
> in Linux >=3D 2.2. This binds to both UDP and TCP sockets
> and serves requests.
>
> 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 =A9 2000 Richard Jones ---
------------------------------
From: Chetan Ahuja <[EMAIL PROTECTED]>
Subject: Re: Router Bootdisk
Date: 15 May 2000 19:02:04 GMT
If your only beef with LRP is a 2.0 kernel, I know there exists a
floppy distribution which is LRP based except that it has a 2.2 series
kernel. The sad part is that I don't remember it's name off-hand but I
know the guy who made that distribution was also selling some windows
based tools to configure your boot floppy. The distribution itself was
free (in all senses) of course. Maybe you can run a search and try
your luck. This will save you a lot of duplicate work as they have
worked to make the distribution small using nonstandard tools etc.
Chetan
Alex <[EMAIL PROTECTED]> spoke thusly:
> Hi,
> I have an unused hard-diskless 486 that is to be used as a firewall for my
> network. I plan to make a boot-disk to load up a small Linux setup with the
> networking stuff I need (maybe look at a BootP/DHCP setup later).
> I compiled a minimal monolithic kernel with the necessary networking
> stuff, and the resulting zImage is 400Kb. Is this about average for these
> purposes?
> I found the Bootdisk-HOWTO and after reading through it, making the disk
> seems straightforward. I would appreciate if someone could give me an
> outline of what else I would need.
> BTW, I looked into the Linux Router Project but I noticed they are using
> an older kernel (2.0.36). I would prefer if I could have at least a 2.2.x
> kernel and tools on the disk, as I am relatively new to this.
> Thanks for your time,
> Alex
> --
> Posted via CNET Help.com
> http://www.help.com/
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Strange lines when "free" is typed in console.
Date: 15 May 2000 15:16:44 -0500
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, YamYam wrote:
> Are there strange details below?
> I writed free, and got these strange lines.
> The strange lines -I pointed- are that linux uses the swap partition,
> at the time that it has a free memory = 23756 -as written below-.
> Why is that? is it a bug or a positive point in linux (or in my kernel
> -at least-).
>
> [root@localhost /root]# free
> total used free shared buffers cached
> Mem: 63252 62224 1028 51684 580 22148
> -/+ buffers/cache: 39496 23756
> Swap: 72256 684 71572
1028 is unused. 580 + 22148 = 22728 is used for buffers and caching.
The situation is normal. The more memory swapped out, the better
(to increase the amount available for processes, buffers, and caching),
*if* the system will never (or rarely) refer to it. Good targets for
this include system daemons and gettys.
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: "La Onda" <[EMAIL PROTECTED]>
Subject: Re: Linux Driver Development
Date: Mon, 15 May 2000 21:36:00 +0200
Good day, Ben Lull
Do you already got any info on a good page for developing a linux device
driver, i also am very interesting because i also have to write a driver.
If you found some page's allready please post it or mail it to me, if you
wish that is.
Tnx already,
Gebrian uit de Bulten
Netherlands
------------------------------
Crossposted-To: comp.os.linux,comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Linux compared to Windows 2000
From: David Steuber <[EMAIL PROTECTED]>
Date: Mon, 15 May 2000 20:00:00 GMT
"Amit Cohen" <[EMAIL PROTECTED]> writes:
' I thought I will find thousands of articles while searching the web, but I
' was wrong. I would appreciate any help.
And then you cross post this to creation and back. I'm setting
followups to colm.
You are asking for a book. Try your search again. Or better yet, buy
a SAMS book on Windows 2000 and an Addison-Wesley book on Linux.
"Linux Application Development" isn't bad. "A Practical Guide to
Linux" would be worth your time too.
I can't recomend anything for Windows 2000 beyond dumping the whole
thing into the Caymen Trench.
--
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: [EMAIL PROTECTED] (Don Waugaman)
Subject: Re: ANSI C++ and void main
Date: 15 May 2000 13:03:12 -0700
In article <[EMAIL PROTECTED]>,
Kaz Kylheku <[EMAIL PROTECTED]> wrote:
>Okay, since you didn't find that useful, I have created a similar
>interpretation for C++ using the C++ Draft Working Paper. You may want to chase
>down the exact references in your copy of the approved standard.
>To stop wasting bandwidth here with off topic posts, I have decided to
>throw it onto a web page.
>http://users.footprints.net/~kaz/cppvoidmain.html
If you would accept a brief contribution to your page...
It seems like some of the misunderstanding in this thread is due to the
second half of clause 3.6.1:
[The main function] shall have a return type of type int, *but
otherwise its type is implementation-defined.*
(Asterisks mine, for emphasis.) You might want to put a pointer to the
standard language rules for determining a function's type - 8.3.5 in the
Draft copy of the standard that I have on hand. This makes it clear
that 3.6.1 specifies that main must return int but that the arguments to
the main function can be defined by the implementation in a conforming
program.
--
- Don Waugaman ([EMAIL PROTECTED]) O- _|_ Will pun
Web Page: http://www.cs.arizona.edu/people/dpw/ | for food
In the Sonoran Desert, where we say: "It's a dry heat..." | <><
This signature file is not self-referential.
------------------------------
Crossposted-To: alt.comp.periphs.mainboard.tyan
Subject: Weird behavior of dual-boot Tyan S1854
Reply-To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Jerry Natowitz)
Date: Mon, 15 May 2000 20:21:59 GMT
I just diagnosed a really strange behavior I found on my dual (Linux and
Win98SE) boot Tyan S1854. I found that if I booted Linux first and then
tried to boot Windoze, the syetem just sat there doing nothing. Hitting the
reset didn't change thing, the system still hung right after the message
about verifying the configuration. A power-cycle would fix things.
After some investigation I found out that my use of modules in Linux for
the CD-ROMs and Zip drive were the cause. Change:
CONFIG_BLK_DEV_IDECD=m
CONFIG_BLK_DEV_IDEFLOPPY=m
to
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDEFLOPPY=y
and all is well. Kernel versions, BTW, are both 2.2.15 and 2.3.99pre9-1
--
Jerry Natowitz - jin at spdcc dot com
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: Linux Driver Development
Date: 15 May 2000 22:03:52 GMT
In article <[EMAIL PROTECTED]>,
Ben Lull <[EMAIL PROTECTED]> wrote:
| I have recently been getting interested in developping drivers for some
| scanners which I've obtained. I'm not sure where to start. I don't see
| much on the web for driver development. It would be appreciated if
| someone could either post a tutorial on developing linux drivers in C or
| some links where I can get information on developing drivers..
The scanner project is called SANE, you'll have to do a lookup for it.
Done at user level using the SCSI and parallel drivers, as I recall.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.
------------------------------
From: Ravi <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.networking,comp.os.linux.misc,comp.os.linux.development.apps
Subject: IP to MAC address
Date: Mon, 15 May 2000 16:09:43 -0700
Hello Every one,
I was wondering if there is an API or an ioctl call in linux to which I
can pass on the IP
address of machine and it can return me the MAC address of the machine
if the machine is
in the LAN. The API can try first a local ARP cache lookup and if the
address
is not present in the local cache it can broadcast the ARP request and
get the
response from the m/c and pass back the MAC address.
pls reply to e at [EMAIL PROTECTED]
Thanks
Ravi
------------------------------
From: Alex <[EMAIL PROTECTED]>
Subject: Re: Router Bootdisk
Date: Tue, 16 May 2000 00:30:21 GMT
>...
> your luck. This will save you a lot of duplicate work as they have
> worked to make the distribution small using nonstandard tools etc.
Thanks Chetan.
Doing a search, I have found a few 'mini-distros' that are similar to LPR,
such as floppyfw and Coyote Linux.
Regards,
Alex
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Need input on developing a unified configuration program for linux
Reply-To: [EMAIL PROTECTED]
Date: Tue, 16 May 2000 00:57:10 GMT
Centuries ago, Nostradamus foresaw a time when Mongoose would say:
> I was going to allow remote administration of the system. I know
>this creates lots of security problems but none that can't be solved.
>
> As for linuxconf... linuxconf is actually the reason why I'm making
>this program. Linuxconf is pretty messy and disorganized. But the main
>reason is that linuxconf only allows C++ modules to be added into the
>program, and they have to be written to work with a new interface
>users have to learn. I was going to write my program to allow modules
>in any language. As long as they can do STDIO. They just output their
>html page, the web server can serve it and then send data back to the
>program, using cgi. It won't matter what language its written in and
>the user will just have to learn html and cgi, which most people
>already know. As for the web server, I was going to write my own mini
>webserver, if there wasn't one already. Just enough to serve the pages
>on a different port. This way the user configuring their system
>wouldn't be required to have a web server installed, and I wouldn't be
>running through port80 creating and more security issues.
Have you looked at WebMin?
<http://www.webmin.com/webmin/>
It looks like it is trying to handle many of the same things you are,
and has the merit that there are already a boatload of modules to help
manage different services in a modular manner.
Sounds to me like you should probably look into that, if you want to
do web-based interactive system reconfiguration.
If you want something scripted, you should look at Cfengine.
<http://www.iu.hioslo.no/cfengine/>
--
Who's afraid of ARPA?
[EMAIL PROTECTED] <http://www.hex.net/~cbbrowne/linuxsysconfig.html>
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: binary compression -- good or bad?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 16 May 2000 00:57:21 GMT
Centuries ago, Nostradamus foresaw a time when Yuzheng Ding would say:
>I heard the greatness of binary compressors like upx that takes away the fat
>from an executable while having "no memory penalty". On the other hand I heard
>that at elast for Windows9x, such compression nullifies code sharing, thus
>suffering heavy memory penalty if you look at the entire picture.
>
>What's the case with Linux? Would code/data sharing be impacted in any ways
>of means? Do unix programs only share the code other than those in
>dynamically linked shared libraries? It seems to me that the sharing of
>dynamically linked shared libraries should not be impacted as they are loaded
>after the program begins (thus after decompression). Did I miss anything?
You're probably correct to think that the use of dynamically linked
libraries will be largely unaffected.
The thing that you miss is that the approach mandates uncompressing
the program once it gets into memory.
THAT forces the whole thing into RAM, which is going to be a severe
"loss" from two perspectives, by defeating "demand paging."
1. It means the whole program has to be loaded into memory _RIGHT
AWAY_.
With demand paging, stuff that isn't used right away doesn't get
loaded YET.
2. It means the whole program has to be loaded into memory.
With demand paging, parts of the program that never execute may
never get loaded into memory.
Double lossage.
There's a third loss:
If I have fifteen instances of /bin/bash running, which is quite
possible, if they are compressed, they will all wind up expanding into
their own independent memory spaces. Whereas if they're left
uncompressed, they can "demand page" in as needed, which _likely_
results in substantial sharing of pages between those 15 instances.
Methinks that this compression would make the system a _WHOPPING LOT_
less efficient...
--
Q: What does the function NULL do?
A: The function NULL tests whether or not its argument is NIL or not. If
its argument is NIL the value of NULL is NIL.
-- Ken Tracton, Programmer's Guide to Lisp, page 73.
[EMAIL PROTECTED] <http://www.ntlug.org/~cbbrowne/lsf.html>
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Need input on developing a unified configuration program for linux
Date: 15 May 2000 21:28:07 -0400
In article <[EMAIL PROTECTED]>,
Mongoose <[EMAIL PROTECTED]> wrote:
> I was going to allow remote administration of the system. I know
>this creates lots of security problems but none that can't be solved.
Uh-oh...
> As for linuxconf... linuxconf is actually the reason why I'm making
>this program. Linuxconf is pretty messy and disorganized. But the main
[snip "why linuxconf is a piece of shit" - that's obvious]
>users have to learn. I was going to write my program to allow modules
>in any language. As long as they can do STDIO. They just output their
Erm... Question: "modules" as in "independent binaries" or as in "something
that can be linked with your code"? The latter case sucks horribly - it
excludes shell scripts, to start with. The former... What the heck do you
mean "can do STDIO"? How does the choice of library matter?
>html page, the web server can serve it and then send data back to the
>program, using cgi. It won't matter what language its written in and
>the user will just have to learn html and cgi, which most people
>already know.
<shudder> Considering the quality of HTML floating around (let alone
CGI - that's a separate rant) I wouldn't use the word "know". Aside of
the biblical sense, that is...
> As for the web server, I was going to write my own mini
>webserver, if there wasn't one already. Just enough to serve the pages
>on a different port. This way the user configuring their system
>wouldn't be required to have a web server installed, and I wouldn't be
>running through port80 creating and more security issues.
Alert: changing the port number does not give you _any_ additional security.
> Which kinda brings me to another question. Is passing data through
>stdio a good idea? Won't certain characters, like high ascii
>characters, get lost if you try to pipe them through stdio?
??? What do you mean?
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
------------------------------
From: Ben Lull <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Linux Driver Development
Date: Tue, 16 May 2000 02:19:21 GMT
Thanks.. I ran into sane a little bit earlier today =)
bill davidsen wrote:
> In article <[EMAIL PROTECTED]>,
> Ben Lull <[EMAIL PROTECTED]> wrote:
>
> | I have recently been getting interested in developping drivers for some
> | scanners which I've obtained. I'm not sure where to start. I don't see
> | much on the web for driver development. It would be appreciated if
> | someone could either post a tutorial on developing linux drivers in C or
> | some links where I can get information on developing drivers..
>
> The scanner project is called SANE, you'll have to do a lookup for it.
> Done at user level using the SCSI and parallel drivers, as I recall.
>
> --
> bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
> "Doing interesting things with little computers since 1979"(tm)
> The hardest test of maturity is knowing the difference between
> resisting temptation and missing a once-in-a-lifetime opportunity.
-- - - - - - - - - - - - - - --
- Ben Lull -
- [EMAIL PROTECTED] -
- Systems Administrator -
- Valley Local Internet, Inc. -
-- - - - - - - - - - - - - - --
------------------------------
** 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
******************************