Linux-Development-Sys Digest #780

2000-04-17 Thread Digestifier

Linux-Development-Sys Digest #780, Volume #7 Mon, 17 Apr 00 05:13:13 EDT

Contents:
  Re: MPROTECT ("Arthur H. Gold")
  Re: MS caught breaking web sites (David Steuber)
  Re: MS caught breaking web sites (David Steuber)
  Re: cli()  sti()... (Badrinath Venkatachari)
  Re: THE SKY IS FALLING! THE SKY IS FALLING! Was (Re: MICROSOFT IT THRU!  MICROSOFT 
IS THRU! ("2 + 2")
  Re: high resolution timers ??? (nilesh patel)
  Re: Win32 Drivers running under Linux (Klamer Schutte)
  RE: Where are the environment variables?  (HPBudlong)
  How do I make a program run on localhost:200 ("Peet Grobler")
  Re: newbie (David T. Blake)
  Re: Put the lib into the libc?  (was: Re: Simple but...) (Nate Eldredge)
  Locking user space pointers in the kernel. (liran)
  Re: Simple but confusing C code query... ([EMAIL PROTECTED])
  Compiling glibc-2.1.3 (W R Carr)
  Network Protocol at Kernel Space ([EMAIL PROTECTED])



Date: Sun, 16 Apr 2000 22:21:25 -0500
From: "Arthur H. Gold" [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps
Subject: Re: MPROTECT

David wrote:
 
 I can unmap code and data  pages, but if I change their access
 permisions I enter into defunct state.
That can certainly happen in a case where you can't get to code you'd
need to run. It would throw a SIGSEGV, look for handler code to deal
with the SIGSEGV, throw another one...and ultimately blow out the stack.
 
 strace no give me information. Simply say nothing. More, mprotect
 function does not appear as a system call (like wait or fork).
This sounds strange. You'll have to tell us more in order to get help (I
don't think there's a clairvoyant among us).
 
 Any Idea?
 
 thaks in advance,
 DTM

HTH,
--ag

-- 
Artie Gold, Austin, TX  (finger the cs.utexas.edu account for more info)
mailto:[EMAIL PROTECTED] or mailto:[EMAIL PROTECTED]
--
A: Look for a lawyer who speaks Aramaic...about trademark infringement.

--

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
From: David Steuber [EMAIL PROTECTED]
Date: Mon, 17 Apr 2000 04:00:03 GMT

[EMAIL PROTECTED] (Robert Hampf) writes:

' Boris [EMAIL PROTECTED] h=E9lt =FEessu fram:
' : Can you post your BS on linux newsgroups. That's were it belongs righ=
t. Just fuck off NT
' : newsgroups you idiot.
' =

' Why?  It hasn't got anything to do with Linux.

It also appears to have no relevance to linux networking.  In fact,
the title is a lie.

Now that I look at the headers, I'm hard pressed to find any place
that this belongs.   Setting followups to something appropriate.

-- =

David Steuber   |   Hi!  My name is David Steuber, and I am
NRA Member  |   a hoploholic.

http://www.packetphone.org/

A great many people think they are thinking when they are merely
rearranging their prejudices.
-- William James

--

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
From: David Steuber [EMAIL PROTECTED]
Date: Mon, 17 Apr 2000 04:00:02 GMT

laugh [EMAIL PROTECTED] writes:

' Robert,
' 
' What can I say? Microsoft does so many evil things that the story seemed
' credible. Have to admit to a certain predisposition towards belief in this area.

I'm that way too.

' Well, I can take some comfort from the fact that Microsoft stock is in
' freefall,
' and Mr. Bill  has lost tens of billions of dollars of net worth.

Pocket change for him.
' 
' And with Linux growing to 35% of all servers and 10% of desktops this year
' alone

Do you have a citation for this?  I would like to see it.  I don't
think Apple even has 10% of the desktops.

'  Go ahead and call me a fudster if that eases the pain, just don't put any
' money in
' Microsoft stockNo, wait, I take that back, please put ALL your money in MS
' stock

I would love to short it, but I don't have the credit.

Then again, the 50 day moving average has just crossed the 200 day
moving average in a downward trend.  The stock is near its 52 week
low.  I think I would just stay away from that issue if I had some
real money to play with.

-- 
David Steuber   |   Hi!  My name is David Steuber, and I am
NRA Member  |   a hoploholic.

http://www.packetphone.org/

Preudhomme's Law of Window Cleaning:
It's on the other side.

--

From: Badrinath Venkatachari [EMAIL PROTECTED]
Subject: Re: cli()  sti()...
Date: Mon, 17 Apr 2000 00:22:50 -0700

Hi,
 Thanks for the detailed explanation. It got some of my thoughts clear. For now,  I
am on a single P machine. What I am trying to do 

Linux-Development-Sys Digest #781

2000-04-17 Thread Digestifier

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: 

Linux-Development-Sys Digest #782

2000-04-17 Thread Digestifier

Linux-Development-Sys Digest #782, Volume #7 Mon, 17 Apr 00 18:13:23 EDT

Contents:
  Re: To core or not to core - You tell me (Ron Natalie)
  Linux kernel preemptability (Manoj Patil)
  Re: How do you generate UUID under Linux? (Xavier Leroy)
  Re: How do you generate UUID under Linux? ("James Ricci")
  Re: What's the difference between bzImage and zImage (John Reiser)
  Re: Q: is there a free secure network filesystem for Linux? (Mario Klebsch)
  Re: understand system calls ! (Alan Donovan)
  Re: Locking user space pointers in the kernel. (Alan Donovan)
  Re: How do I make a program run on localhost:200 (Alan Donovan)
  Re: kernel communicate with module (Michael Kelly)
  Re: How do I make a program run on localhost:200 (Eric P. McCoy)
  Re: PIIX4 not 100% native mode (Kevin Buhr)
  linux  NOT knfs (not kernel nfs) (Alexander Sirotkin)
  Re: mawk ("Michael Faurot")
  Re: Network Protocol at Kernel Space (Kaz Kylheku)
  Re: MS caught breaking wind ("aCiD fEiNd")
  Re: To core or not to core - You tell me (Mark McIntyre)
  Re: To core or not to core - You tell me (Mark McIntyre)
  Kernel Driver Module accessing a text file: How to? ("Sean Bose")
  Re: To core or not to core - You tell me (Erik Max Francis)
  Re: To core or not to core - You tell me (Ron Natalie)
  Re: Put the lib into the libc?  (was: Re: Simple but...) (Matthias Kleinmann)
  Re: To core or not to core - You tell me (Erik Max Francis)
  Re: MPROTECT (David)
  Re: To core or not to core - You tell me (Barry Margolin)



From: Ron Natalie [EMAIL PROTECTED]
Crossposted-To: comp.lang.c,comp.unix.solaris,comp.lang.c++,comp.unix.programmer
Subject: Re: To core or not to core - You tell me
Date: Mon, 17 Apr 2000 10:31:01 -0400



Mark McIntyre wrote:

 
 which in and of itself is not a pointer.
 
 says who?

Says the language, it's an literal of type int.  The null pointer constant
only has meaning when compared/assigned-to a pointer.

 
 *sigh*. No I don't I mean the bit pattern of the value that NULL
 preprocesses out into when the preprocessor runs through your code.
 You are the one talking about a null pointer. I'm talking about the
 null pointer constant.

Frankly, you don't know the representation of anything in the C language, is
the point.  A integer zero may not be encoded as a bunch of zero bits as far
as the language is concerned.


--

From: Manoj Patil [EMAIL PROTECTED]
Subject: Linux kernel preemptability
Date: Mon, 17 Apr 2000 20:22:02 +0530

I have few questions on kernel pre-emptability

1. Is the kernel pre-emptable, if yes, to what level.  (are there any
ifs and buts on this ? )
2. How many levels of interrupts pre-emptability is supported and how is
it implemented. (For example in AIX , there are 12 levels supported and
each interruption is saved in mstsave structure)



--

From: Xavier Leroy [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,it.comp.linux.development
Subject: Re: How do you generate UUID under Linux?
Date: 17 Apr 2000 16:52:14 +0200


"James Ricci" [EMAIL PROTECTED] writes:

 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.

UUIDs are just world-wide unique sequences of 16 bytes.  The best way to 
generate them is simply to use 16 random bytes from a high-quality
pseudo-random number generator.  (The chances of two persons
generating the same 16-byte random number are astronomically low.)

Linux has such a PRNG built in the kernel.  Just open the device
/dev/random and read 16 bytes from it.  Voila, a perfectly correct
UUID.

Alternatively, you can also generate UUIDs the Microsoft way,
by using the machine's Ethernet address, time of generation, and
random bytes for padding.  However, it's more complex, not really more
secure against collisions, and the resulting UUIDs reveal your
Ethernet address, which is not necessarily desirable.  (Not to mention
that your computer may not have an Ethernet card.)

- Xavier Leroy

-- 
Valid e-mail address (without the underscores): [EMAIL PROTECTED]
This is a protection against junk mail. Apologies for the inconvenience.
Home page: http://pauillac.inria.fr/~xleroy/

--

From: "James Ricci" [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,it.comp.linux.development
Subject: Re: How do you generate UUID under Linux?
Date: Mon, 17 Apr 2000 10:59:08 -0400

Xavier,

Good point. I'll play with /dev/random a bit.

James



--

From: John Reiser [EMAIL PROTECTED]
Subject: Re: What's the difference between bzImage and zImage
Date: Mon, 17 Apr 2000 08:53:23 -0700

Only the zImage file itself 

Linux-Development-Sys Digest #783

2000-04-17 Thread Digestifier

Linux-Development-Sys Digest #783, Volume #7 Tue, 18 Apr 00 01:13:10 EDT

Contents:
  Re: Q: is there a free secure network filesystem for Linux? (David Wragg)
  Re: How do you generate UUID under Linux? (David Wragg)
  Re: To core or not to core - You tell me ("Dik T. Winter")
  Re: How do I make a program run on localhost:200 (Charles Bryant)
  USENIX Operating Systems Symposium (OSDI 2000) - Final Notice of Call For Papers 
(Moun Chau)
  binutils, missing objdump options and linux 2.0.36+ (SGTRUCK)
  Re: device driver development (Pankaj Chhabra)
  Re: Spinlock trouble (Pankaj Chhabra)
  Re: Development (Pankaj Chhabra)
  Re: PCI Modem (Rob Clark)
  Re: binutils, missing objdump options and linux 2.0.36+ (Paul Kimoto)
  Re: How do I make a program run on localhost:200 (Jonathan Voigt)
  Re: binutils, missing objdump options and linux 2.0.36+ (Markus Kossmann)
  How to increase descriptors of client socket (Walker Lee)
  x/dsm and dmapi on linux? (Lindanne Metley)
  mutux for screen output ("Ruppert R. Koch")



From: David Wragg [EMAIL PROTECTED]
Subject: Re: Q: is there a free secure network filesystem for Linux?
Date: 17 Apr 2000 19:39:17 +

[EMAIL PROTECTED] (Mario Klebsch) writes:
 David Wragg [EMAIL PROTECTED] writes:
 The TI/RPC code released by Sun seems to be pretty complete, with the
 exception of the GSSAPI mechanism for Kerberos, which is dissapointing
 since it is in Solaris 8.
 
 I am sorry, my Solaris Knowledge is a bit outdated. I don't know the
 GSSAPI.

My knowledge is currently restricted to the implementation details of
Secure RPC, rather than the practical details of its use on
Solaris. (I have a machine waiting for me to install Solaris 8 and
have a play with its Kerberos 5 support, but I haven't had the time so
far).

 However, I know, secure NFS was there from the first Solaris 2
 days, and it never was called NFS version 4. Secure NFS was even
 possible prior toi NFS version 3.

Correct. The security applies to Sun's RPC mechanism, so anything
implemented on top of that (all NFS versions, other RPC services) can
benefit. Thus if the Linux NFSv4 project implements Secure NFSv4, they
will have done almost all of the work needed for Secure NFSvWhatever.

 I must admit, I never completely understood secure RPC. I knew enough
 to create credentioals and keep NIS+ happy, but I always wondered, how
 it was integrated into the kernel.
 
 - What the hell does keylogin do?
 - Where does it get the users password (I did not enter my password
   twice upon a normal login)?
 - The credentioals are stored by the keyserver. How does the kernels
   NFS get it?

I think these are probably related to the Diffie-Hellmann public keys
which are the default security mechanism used by Secure RPC. But you
can use other security mechanisms (e.g. Kerberos) by using other
GSSAPI (Generic Security Service API) modules.


David Wragg

--

From: David Wragg [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,it.comp.linux.development
Subject: Re: How do you generate UUID under Linux?
Date: 17 Apr 2000 22:25:04 +

"James Ricci" [EMAIL PROTECTED] writes:
 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.

The is a library to do exactly this on Linux: libuuid. It has been
part of e2fsprogs for a few years, so it is installed on virtually
every Linux, but it is rarely mentioned or used. (Every ext2 file
system is given a uuid when it is created.)

The header file for libuuid is /usr/include/uuid/uuid.h, but you may
need to install the e2fsprogs-devel package or similar to get
it. There is a libuuid man page in the e2fsprogs source distribution,
but it does not seem to be in the e2fsprogs-devel package of Red Hat
6.2. The program uuidgen ("man uuidgen") uses libuuid to generate a
uuid and prints it on stdout.


David Wragg

--

From: "Dik T. Winter" [EMAIL PROTECTED]
Crossposted-To: comp.lang.c,comp.unix.solaris,comp.lang.c++,comp.unix.programmer
Subject: Re: To core or not to core - You tell me
Date: Mon, 17 Apr 2000 23:45:12 GMT

In article [EMAIL PROTECTED] [EMAIL PROTECTED] 
writes:
  I've forgotten the context, we've snipped so much but... if you mean
  zero is a literal of type int hten ok. If you mean NULL is a literal
  of type int then nope.

If NULL is defined as 0, then after expansion it is a literal of type int.
-- 
dik t. winter, cwi, kruislaan 413, 1098 sj  amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn  amsterdam, nederland; http://www.cwi.nl/~dik/

--

From: Charles Bryant [EMAIL PROTECTED]
Crossposted-To: