Linux-Development-Sys Digest #781, Volume #7 Mon, 17 Apr 00 10:13:19 EDT
Contents:
Re: device driver development (Mei)
mawk ("Hook")
Re: Simple but confusing C code query... (Johan Kullstam)
Re: Where are the environment variables? ([EMAIL PROTECTED])
Re: How do I make a program run on localhost:200 ("Benjamin R Heath")
Re: Simple but confusing C code query... (Mike Dowling)
Re: What's the difference between bzImage and zImage (greg)
Code reviewers wanted (Manon Kwint)
Code reviewers wanted (Arnaud Westenberg)
Timerinterrupt ([EMAIL PROTECTED])
Questions on C GUI development for X/Linux (Michael Hopkins)
Re: delay start up for somve services ("Stephen Kennedy")
Re: MICROSOFT IT THRU! MICROSOFT IS THRU! ("Drestin Black")
Re: MS caught breaking web sites ("Drestin Black")
How do you generate UUID under Linux? ("James Ricci")
----------------------------------------------------------------------------
From: Mei <[EMAIL PROTECTED]>
Subject: Re: device driver development
Date: Mon, 17 Apr 2000 12:39:05 +0200
Reply-To:
[EMAIL PROTECTED]
Rick Ellis ha scritto:
> >The rmmod works with the name of the driver without .o suffix. So in you load
> >it with
> >
> >insmod driver.o
> >
> >you must remove with
> >
> >rmmod driver
>
> Have the .o works for me:
>
> [root@dualpritest dvg]# rmmod mvclni2sngl.o
> [root@dualpritest dvg]#
>
It's strange. It doesn't work for me with .o. It says that driver.o doesn't
exist.
Ciao Mei
------------------------------
From: "Hook" <[EMAIL PROTECTED]>
Subject: mawk
Date: Mon, 17 Apr 2000 11:41:37 +0100
Can anyone tell me were can I find mawk for redhat 6.0, I need it for the
hylafax program.
please.
------------------------------
Crossposted-To:
uk.comp.os.linux,uklinux.help.newbies,comp.os.linux.development,comp.os.linux.questions,comp.os.linux.development.apps
Subject: Re: Simple but confusing C code query...
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: Mon, 17 Apr 2000 11:54:05 GMT
[EMAIL PROTECTED] writes:
> In comp.os.linux.development.system Johan Kullstam <[EMAIL PROTECTED]> wrote:
> : you need to link with the math library libm.
>
> : $ gcc prog.c -o prog -lm
>
> : (yes this is stupid and libm should have been rolled into libc about
> : 20 years ago but here we are.)
>
> Excluding libm from libc makes sense if it allows you to build
> executables which don't have any floating point code in them
> at initialization time. Such executables run faster since the
> kernel can notice this and won't bother swapping the floating
> point registers on each context switch.
right, but if libm were available and you used nothing from it, would
it still link in? could you make it do the right thing?
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Where are the environment variables?
Date: Mon, 17 Apr 2000 12:30:17 +0100
HPBudlong <[EMAIL PROTECTED]> wrote:
: RE: Where are the environment variables?
: bash, sh, and ksh and similar shells use environment variables such as $PS1,
: $PS2. printenv lists some but not all of these, e.g. $PS1 is listed, $PS2 is
: not, though $PS2 clearly has a value and shows up with
: echo $PS2
: This is true with other environment variables as well.
: Why don't they all show up in printenv?
Have a look at the `export' command in the bash manpage.
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: "Benjamin R Heath" <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.questions,comp.unix.programmer,comp.os.linux.development.apps
Subject: Re: How do I make a program run on localhost:200
Date: Mon, 17 Apr 2000 07:13:19 -0500
"Peet Grobler" <[EMAIL PROTECTED]> wrote in message
news:38fabdf5$0$[EMAIL PROTECTED]...
> Okay, I assume this must be possible, otherwise nobody would be using
UNIX.
>
> Anyways, running Mandrake Linux 7.0 at home. I was thinking, how would you
> make a program run on a specified port?
>
> E.g. in /etc/inittab, you have an entry that respawns getty on tty1 to
tty6.
> I want to do something like that, just on a specified port.
>
> E.g. let's say I wrote a special getty program. I want it to sit on port
> 200, waiting for connections. Do I have to write the program to
specifically
> open a port, or can I use some script somewhere to get the program's stdin
> to be changed to a port???
>
> Any help appreciated
>
>
Take a look at inetd, it will start a program and set up stdin as input from
your socket and stdout as output to your socket. You have to add an entry
to inetd.conf I believe, but that's about it.
------------------------------
From: [EMAIL PROTECTED] (Mike Dowling)
Crossposted-To:
uk.comp.os.linux,uklinux.help.newbies,comp.os.linux.development,comp.os.linux.questions,comp.os.linux.development.apps
Subject: Re: Simple but confusing C code query...
Date: 17 Apr 2000 12:31:20 GMT
I don't know why nobody else picked this up; perhaps everybody uses Macs :-(.
On Sat, 15 Apr 2000 20:54:45 +0100, Michael Hopkins <[EMAIL PROTECTED]> wrote:
>
>Please help me with this extremely simple problem.
snip
> printf(�Ok\n�); /* line A */
printf expects a string, and strings are delimited by the '"' char, and
they were not double quotes. They appear on my screen as '?', and uner
emacs as \223 and \224
Macs obviously don't use ASCII or ISO-Latin1.
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[23,24]
are valid. If email to mikeN bounces, try mikeN+1.
------------------------------
From: greg <[EMAIL PROTECTED]>
Subject: Re: What's the difference between bzImage and zImage
Date: Mon, 17 Apr 2000 08:36:23 -0400
Reply-To: [EMAIL PROTECTED]
I was just recompiling my kernel (for the first time .. a nail byter). 'make
zImage'. I was told there wasn't enough space for a zImage, and to try again with
a bzImage. Which I did. But now I'm not sure if I have to go back and clean up
after the 'make zImage' attempt.
John Reiser wrote:
> ......Anything bigger (bzImage) must go
> somewhere else. The chosen address was 0x100000, although it would have
> been better to pick 0x110000, again because of historical PC "high memory"
> considerations.
------------------------------
Date: Mon, 17 Apr 2000 12:49:28 +0200
From: Manon Kwint <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.devel,comp.os.linux.development.apps
Subject: Code reviewers wanted
Hi all,
I've written a device driver for CAN-bus (Controller Area Network) but
since I'm no "official" programmer I'd appreciate if some people would
review my code.
The code is working but I would like some comments on variable scope,
memory usage, programming style, etc. All comments and suggestions are
appreciated!
You can get the tarred/zipped package at:
http://www.linuxfreak.com/~arnaud
It doesn't use "make install" yet so you are able to simply remove it
from your system with: "rm -rf can-dir"
Thanks in advance,
Arnaud
------------------------------
Date: Mon, 17 Apr 2000 12:54:36 +0200
From: Arnaud Westenberg <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.devel,comp.os.linux.development.apps
Subject: Code reviewers wanted
Hi all,
I've written a device driver for CAN-bus (Controller Area Network) but
since I'm no "official" programmer I'd appreciate if some people would
review my code.
The code is working but I would like some comments on variable scope,
memory usage, programming style, etc. All comments and suggestions are
appreciated!
You can get the tarred/zipped package at:
http://www.linuxfreak.com/~arnaud
It doesn't use "make install" yet so you are able to simply remove it
from your system with: "rm -rf can-dir"
Thanks in advance,
Arnaud
------------------------------
From: [EMAIL PROTECTED]
Subject: Timerinterrupt
Date: Mon, 17 Apr 2000 12:59:37 GMT
Hallo,
ich bin noch neu auf dem Gebiet der LINUX-Programmierung.
Ich ben�tige f�r eine Ausgabe eines Sinus (max. 5 kHz) auf eine "dumme"
AD/Da-Karte von ELV eine Zeitbasis von 100�sec (10 kHz). Mit den
normalen Timern im User-Space ist aber nur eine Aufl�sung mit einer Zeit
von 10 msec m�glich.
Kann ich per Kernel-Modul den Timerinterrupt (IRQ 0) f�r meine Zwecke
"verbiegen"? Gibt es eventuell noch eine andere M�glichkeit auf diese
Zeitbasis von 100 �sec zu kommen?
F�r Antworten bedanke ich mich im vorraus.
Steffen
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Mon, 17 Apr 2000 14:26:04 +0100
From: Michael Hopkins <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.questions,comp.os.linux.development,linux.dev.newbie,uklinux.help.newbies,uk.comp.os.linux
Subject: Questions on C GUI development for X/Linux
Hi all,
First of all, many thanks to those that recently told me what to
include to get the math functions working. Much appreciated. I have
some other questions as I optimistically start out on the steep
learning curve to build working GUI C/C++ programs on X/Linux.
Does anyone have any recommendations on a good, reliable IDE for
looking after coding projects. I know that there are a few now for
Linux (gIDE, C-forge, JX, CodeWarrior) but I don=92t have enough
experience of the platform & compilers to make an informed decision on
the best one to go with.
A related question to the above is:
Are there any RAD environments as easy to use as C++ Builder in Linux
for either C or C++. I know of Glade, gtk etc. but again don=92t know
enough about what I=92m looking at to make an informed choice. Which
has the gentlest learning curve! I=92m only wanting simple front ends
with some menus & dialog boxes. Are the =91C++ based=92 ones easier to
use?
Can anyone tell me how easy it is to do the following. Code or
library refs would be MUCH appreciated. I just want to call a
function in C that brings up an open(save) dialogue box which allows
the user to browse around and select(name) a file. The function
whould return a string containing the full pathname of the file. This
would be given to fopen() to allow reading(writing) of ascii files. I
have achieved this on the Mac but know nothing about the X-window
version of the Mac toolbox. I=92m sure that someone else must have
wanted to do this at some point; maybe some of the standard GUI
libraries include it somewhere?
Finally, I have little experience with C++ but am considering adapting
all my numerically intensive ANSI C code to C++ to facilitate:
1) Making it easier to support a GUI library.
2) Making code re-use/organisation easier.
Any thoughts? I particularly want to know how much of a performance
hit I will take for numerical loops/matrix operations (if at all)
using standard C++ approaches. If there aren=92t any advantages to
making all my code C++ I really don=92t want to bother.
Thanks again for your time & any thoughts,
Mike
------------------------------
From: "Stephen Kennedy" <[EMAIL PROTECTED]>
Subject: Re: delay start up for somve services
Date: Mon, 17 Apr 2000 14:33:40 +0100
> I have installed sendmail , wu-ftpd, telnetd and httpd in my RH6.1.
> Besides the httpd, all the service starts up very slowly. But after start
> up, they works fine.
...
> Then I guess may be hardware has problem, but http works fine.
> Do anyknow whats wrong here ?
This sounds like a DNS timeout problem. I've seen
several threads about this especially in regard
to slow sendmail startup.
A look at dejanews or a trawl through the howtos will
have what you're looking for.
Stephen.
------------------------------
From: "Drestin Black" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MICROSOFT IT THRU! MICROSOFT IS THRU!
Date: Mon, 17 Apr 2000 09:34:48 -0400
"Charlie Ebert" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> Microsoft has been forced to admit they created secret back doors to every
> computer
> system they sold out the DOOR!
as Microsoft has NEVER sold a computer system ever I would say we are all
quite safe from whatever you are talking about.
------------------------------
From: "Drestin Black" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
Date: Mon, 17 Apr 2000 09:39:07 -0400
http://www.microsoft.com/misc/data/servervulnerability.htm
"Charlie Ebert" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Okay, let's discuss this.
>
> Robert Moir wrote:
>
> > "wisdom" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > WELL WELL WELL!
> > >
> > > For all of you butt-bumping suckbuddies of Mr. Bill who have
> > > been assuring us that there are no network "backdoors" in
> > > Windows you, along with your evil master, are fucked now.
> > >
> > > Microsoft just acknowledged (see attached CBS article) that they
> > > installed secret code in Windows to sabotage webservers
> > > by allowing "backdoor" unsecured logins for hackers. The
> > > code was apparently intended to be used against Netscape
> > > based on embedded comments in the file.
> >
> > Hey Fudster, seen this?
> > taken from NT bugtraq
> >
>
> HOLD IT RIGHT THERE! He's not a FUDSTER for reporting the truth.
>
>
>
> >
> > Latest reports say that there is
> > NO VULNERABILITY IN DVWSSR.DLL
>
> If there's no GD vulnerabiltiy in the .Dll mentioned, then why are
> they telling people to DELETE IT! What are you F'ing saying here!
>
>
> >
> > Yup, that's right, different again from what I said earlier, and even
more
> > different than what I said yesterday to WSJ.
>
> I don't consider WHITE WASH a GOOD ARGUMENT!
>
>
> >
> > Please accept that I have followed the story published elsewhere and
tried
> > to keep you abreast of everything I knew. Also appreciate that the
amount of
> > time given to verify and research the claims made by others has been
> > extremely short. I've had probably 30 interviews today by orgs pressing
for
> > information on the story as the feeding frenzy occurs after the first
one
> > goes to press (WSJ in this case).
> > MS have had people working on this thing like madmen, trying to verify
the
> > claims and investigate all of the possible pieces of code that may be
> > affected. As that research progressed, different observations were made
and
> > so the story came out in various stages (with varying levels of
> > "correctness"). Had they been given a reasonable amount of time to
respond,
> > nobody would have been in a tizzy about anything (i.e. the press would
not
> > have cared to run this story anywhere).
> > Decide for yourself whether we were better served by (more) immediate
> > disclosure or not. I've stood where I stand for a reason, despite the
> > loathing of others for my stance...
>
> Oh for christ sakes! If Microsoft and their policies were less crooked
then
> we would have never had this MESS to begin with.
>
> Your WHITE WASH of the story isn't helping ANYBODY HERE!
>
>
> >
> > In the end, it turns out that unless you actually have permissions for
the
> > file you are requesting, you'll get an error message when you follow the
> > procedures outlined by RFP in his RFP2K02 advisory.
>
> OH crap! Why are they asking people to delete it!
>
>
> >
> > That said, understand that sites that allow connections by Front Page
may
> > very well provide you with source asp if you request it. BUT THAT WILL
> > HAPPEN with or without the .dll. Without proper and full permissions
applied
> > across virtual servers on a given box, site leakage or manipulation by
> > others will always be possible in myriad ways.
>
> I'm not going to say it!
>
>
> >
> > From what I've heard/seen/been told, permissions on the test servers
must
> > have either been non-existent, incorrectly applied, or permissioned the
user
> > across multiple virtual sites (i.e. incorrectly applied).
> > I had someone claim that they could get into an FP98 site using
> > "Netscapeengineersareweenies!" as a userID and no password...making them
> > think it was a backdoor userID. Fact is they could get into the same
sites
> > using "TomDickandHarry" as a userID too. If the permissions aren't set
> > correctly, anything is possible.
>
> Yes, ANYTHING IS POSSIBLE!
> I'm beginning to believe Microsoft WILL STUP AT NOTHING!
>
> >
> > This info may change again before its finalized. It may well be that
there
> > is some way to use this .dll in a way that's not intended...it just
doesn't
> > appear to be this one. On a box where multiple sites have not been
> > individually permissions, or permissions are lax or
non-existent...anyone
> > permissioned to execute the .dll in the first place would have the
ability
> > to simply open the other sites and manipulate them directly (i.e. no
need to
> > do this junk with the dvwssr.dll)
> > Finally, to my point out the string not being a password. Elias Levy of
> > SecurityFocus.com and Mark Edwards of NTSecurity.net have both correctly
> > pointed out that using the term password to apply to that string is not
> > beyond the realm of understanding. The client component mtd2lv.dll and
the
> > server component dvwssr.dll both need to know this value, and use it
> > correctly, for communications to work. If you try and talk directly to
> > dvwssr.dll and don't obfuscate your communication with the correct
"key", it
> > won't understand you. Of course if you don't already have permissions,
> > knowing this value gets you nothing...hence my observation that its not
a
> > password. Whatever it is, it appears to be meaningless junk text used as
> > data.
>
> This day marks an end to trust between most of the nations internet ready
> companies and the company known as Microsoft.
>
> You WOULD NEVER have had THIS KIND OF PROBLEM if you USED OPEN SOURCE
CODE!
> THIS EXAMPLE is but one of MANY WE COULD SITE HERE TODAY which
functionally
> BURIED the proprietary closed source concept, EXPECIALLY FROM MICROSOFT!
>
> I think you can EXPLAIN until your head falls off.
> By this time NEXT WEEK, nobody in corporate America will trust MICROSOFT
with
> ANYTHING!
>
> I'm SHOCKED. Do you hear me! SHOCKED! OUTRAGED!
>
> LIES, LIES and MORE LIES! I'm SICKENED!
> ENOUGH COVERUP ALREADY!
>
>
> Charlie
>
>
>
>
------------------------------
From: "James Ricci" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,it.comp.linux.development
Subject: How do you generate UUID under Linux?
Date: Mon, 17 Apr 2000 09:59:24 -0400
We are porting some C++ code from Win32 to Linux. One of the last pieces yet
to move is the generation of GUID's (or UUID's) from within our program.
I've not been able to locate a native routine under Linux which can do this.
We're looking for the code equivalent of UuidCreate under Linux.
We're using the GNU C++ compiler under Linux. Does anyone know how to do
this, or perhaps a package we could get/purchase which does this?
Thanks in advance.
James
------------------------------
** 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
******************************