Linux-Development-Sys Digest #84, Volume #7 Sun, 22 Aug 99 04:14:34 EDT
Contents:
Re: generating random numbers (Clifford Kite)
Re: generating random numbers (stephen chan)
update_vm_cache (Hee-Chul Yun)
Re: Can GLIBC-2.1.1 Be Compiled Using GCC-2.95? (Allin Cottrell)
I HATE LT WIN MODEM!!!!!!!!!!!!!!! (liuyb)
Driver for Tripace TC-1550 SCSI ctrlr (Luuk van Dijk)
Re: I HATE LT WIN MODEM!!!!!!!!!!!!!!! ("Charles Sullivan")
Re: glibc-2.1.1 problems (David T. Blake)
Re: Linux - Memory model / protection scheme ("Pizzi")
PROPOSAL: A secure, simple NIS replacement ([EMAIL PROTECTED])
Re: Linux - Memory model / protection scheme (Todd Knarr)
Re: generating random numbers (stephen chan)
Re: Linux - Memory model / protection scheme ("Pizzi")
Re: update_vm_cache (newsseeker)
Linux's faults (XuYifeng)
Re: X Windows developement (Tranceport)
Re: I HATE LT WIN MODEM!!!!!!!!!!!!!!! ("Little Rascal")
Re: I HATE LT WIN MODEM!!!!!!!!!!!!!!! (Jordi Backx)
----------------------------------------------------------------------------
From: kite@NoSpam.%inetport.com (Clifford Kite)
Subject: Re: generating random numbers
Date: 21 Aug 1999 20:32:57 -0500
stephen chan ([EMAIL PROTECTED]) wrote:
: I've got this short piece of code that generates random numbers.
: =============================================
: #include <stdio.h>
: #include <stdlib.h>
: #include <time.h>
: int main(void)
: {
: int i;
: int random_num;
: srand((unsigned int)time(NULL));
: for(i=0;i<100;i++)
: {
: random_num=1+(int) (10.0*rand()/(RAND_MAX+1.0));
: printf("%d\t",random_num);
: }
: }
: ===============================================
: It's suppose to generate random numbers between 1 to 10,
: but after testing, it generates random numbers between 0 to 10.
: What am I doing wrong?
I can't resist this since it's about the only kind question posted to
this group that I'm qualified to answer.
Did you notice that all the 0s occur at the far left side of the screen
*and* for every 0 the number on the far right for the preceding row is
a 1?
--
Clifford Kite Not a guru. (tm)
[EMAIL PROTECTED] Better is the enemy of good enough.
------------------------------
From: stephen chan <[EMAIL PROTECTED]>
Subject: Re: generating random numbers
Date: Sat, 21 Aug 1999 20:16:38 -0700
Sorry, wrong NG. Please disregard. Thanks
stephen chan wrote:
> Hello:
>
> I've got this short piece of code that generates random numbers.
>
> =============================================
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <time.h>
>
> int main(void)
> {
> int i;
> int random_num;
>
> srand((unsigned int)time(NULL));
>
> for(i=0;i<100;i++)
> {
> random_num=1+(int) (10.0*rand()/(RAND_MAX+1.0));
> printf("%d\t",random_num);
> }
> }
>
> ===============================================
>
> It's suppose to generate random numbers between 1 to 10,
> but after testing, it generates random numbers between 0 to 10.
> What am I doing wrong?
>
> Thanks
> Stephen
------------------------------
From: Hee-Chul Yun <[EMAIL PROTECTED]>
Subject: update_vm_cache
Date: 22 Aug 1999 03:00:55 GMT
I upgraged my kernel from 2.2.5 to 2.3.12. It seemed to work well..
but when i loaded vfatmodule to mount my fat32 partition i got a message
that there's no reference to 'update_vm_cache' function.
Is there anyone who have same problem?
--
Hee-Chul, Yun e-mail: [EMAIL PROTECTED]
KAIST CS Dept, CA Lab. Phone : 5552(Lab), 017-755-9413
------------------------------
From: Allin Cottrell <[EMAIL PROTECTED]>
Subject: Re: Can GLIBC-2.1.1 Be Compiled Using GCC-2.95?
Date: Sat, 21 Aug 1999 22:39:12 -0400
Habibi4me wrote:
>
> checking build system type... i586-pc-linux-gnu
> checking for gcc... gcc
> checking version of gcc... 2.95, bad <====== ************
To get the configure process to work for glibc 2.1.1 with
gcc 2.95, do:
Open the file "configure" in an editor and search for the first
line containing "egcs". It should start like this
egcs-2.9[1-9].*|egcs-2.90.2[789]...
stick the string "2.95|" in front of the existing line, save the
file, then configure as usual. Gcc 2.95 postdates glibc 2.1.1,
and "configure" fails because it's not expecting the string that
2.95 produces when fed "gcc -v".
--
Allin Cottrell
Department of Economics
Wake Forest University, NC
------------------------------
From: liuyb <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,redhat.hardware.arch.intel
Subject: I HATE LT WIN MODEM!!!!!!!!!!!!!!!
Date: Sun, 22 Aug 1999 03:30:53 GMT
I have a lt win modem, but I can't let it work in linux. I tried all means
and spend a lot of time , the result is the same. So I hate it.
I HATE WIN MODEM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================== Posted via CNET Linux Help ==================
http://www.searchlinux.com
------------------------------
From: Luuk van Dijk <[EMAIL PROTECTED]>
Subject: Driver for Tripace TC-1550 SCSI ctrlr
Date: Sat, 21 Aug 1999 21:17:56 +0200
There does not seem to be a driver for the Tripace TC1550 chip, a
a pretty cheap scsi controller. So in the best of traditions I'm
considering to write a kernel module myself.
Does anyone have any experience with this little beast?
Any info is probably useful.
Luuk van Dijk
------------------------------
From: "Charles Sullivan" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,redhat.hardware.arch.intel
Subject: Re: I HATE LT WIN MODEM!!!!!!!!!!!!!!!
Date: Sat, 21 Aug 1999 23:53:55 -0400
You should have spent some time reading these newsgroups instead
of fiddling with your winmodem. There are about 10 messages
a day which state that winmodems don't work, and can't be made
to work, under Linux (unless the manufacturer supplies a Linux
driver or interface specs, which none do at present).
liuyb wrote in message ...
>I have a lt win modem, but I can't let it work in linux. I tried all means
>and spend a lot of time , the result is the same. So I hate it.
> I HATE WIN MODEM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>------------------ Posted via CNET Linux Help ------------------
> http://www.searchlinux.com
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: glibc-2.1.1 problems
Date: 21 Aug 1999 21:30:47 GMT
Reply-To: [EMAIL PROTECTED]
Mike Dowling <[EMAIL PROTECTED]> wrote:
> The problem is that virtually every binary now cannot be
> executed as the shared libraries don't appear to have certain
> functions. This did also happen on the first computer, but only a
> handful of binaries were affected, and these have since been all
> re-compiled.
Read the FAQ for the release of glibc2.1
Or, just replace just about everything in /lib and
/usr/lib.
Now, not everything is broken, but the other recourse is
actually determing which libraries are broken and which
are not. The biggies at libstdc++ and ncurses.
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: "Pizzi" <[EMAIL PROTECTED]>
Subject: Re: Linux - Memory model / protection scheme
Date: Sat, 21 Aug 1999 23:10:12 -0400
>Well, every Win32 process in Win9x has its own address space (page tables).
>This means that you *cannot* modify another Win32 process' memory; you
>simply cannot even *address* that memory using the page tables of your
>address space ...
here's my first and most important question: how can an OS afford a full
page table set for each task?? that's a question for Win9x/WinNT as well as
for linux. if you're using a 4G virtual address space, that's 4MB's of page
tables (+ a 4k page table directory) per task, which is a lot.
The rest of your message was all new to me, thanks. I knew windows' security
was weak, but i didn't know it was THAT weak. heheh. i'll put all that down
on my list of cool ways to crash windows. where do you learn stuff like
that? i've been programming windows '95 in assembly to try to learn the
internals, yet as i said, all that you just wrote was foreign to me.
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.security.unix
Subject: PROPOSAL: A secure, simple NIS replacement
Date: Sun, 22 Aug 1999 04:06:58 GMT
I woke up this morning with an idea for an NIS replacement almost fully
formed in my head. It is so elegant that I had to share in the hopes
that some folks out there would take on the challenge.
First off, I'm not at all sure that it makes sense for it to handle
anything more than passwd and group file distribution, but in this
document I will *only* cover passwd information. This is 90% of the job,
and the most important part.
Server configuration:
On the server, the administrator would have only ONE extra file to
manage (not counting the addition to the passwd entry in nsswitch.conf).
This is a major part of the idea. It should integrate with a
pam/nsswitch-capable UNIX system seamlessly and not require any extra
databases, etc.
This file would contain all of the configuration directives for the
service (I'll call it "spass" from here on, just as a place-holder). It
would look something like:
# Do we accept client connections?
server on
# Do we get our info locally or remotely?
# note that the local pluggable authentication module
# for spass will still work, this just means that we maintain
# our own passwd file.
client off
# Who do we serve and who do we trust?
# Security: step 1. See encryption info later
allowed_clients *.mydomain.com
disallowed_clients bofo.mydomain.com
# Security: step 2.
# The first line (local_ignore) specifies which accounts the
# local pam should dissavow knowledge of even though they
# are in /etc/passwd (et al. including shadow info)
local_ignore uid>=600
# The next line (transmit_rule) specifies which accounts
# should be sent to remote systems.
transmit_rule uid>=500
# In this particular scheme, all of our admins have uids from
# 500 to 599, so they can log in on the server, but all other
# users (600+) can only log in on the clients.
Obviously, for this last bit to work, you must structure your server's
nsswitch.conf file such that a negative from the spass pam would cause a
negative to be returned to the user. If you simply failed over to files,
then the local_ignore would have no effect.
Now, here's the fun part: the network protocol uses the same encryption
as GPG (thus freely distributable, as far as I know). No verification
(e.g. login) is done via the protocol, that's simply a matter of the
configuration file on the server and client. Local IP spoofing might
still result in some unauthorized access, but remote users would be
completely unable to gain access (assuming that (a) your router does not
allow spoofing to pass through and (b) your server's config file does
not allow the world to gain access).
There should be a provision for "server yes" and "client yes" which is
basically a caching server. Perhaps even a way to be a sub-domain in the
sense that you get your primary info from up-stream and then add-to and
subtract from it.
The protocol should be able to convey advanced user information such as
account aging; non-DES password hashes; more-than-8-character usernames
(perhaps allowing for systems that allow all sorts of weird characters
in usernames); and perhaps even protocol applicability (e.g. this
account only works from an apache plug-in or from the imap server).
That's essentially it. The actual code needed would be:
1. The additional pam (Pluggable Authentication Module)
2. The server (a caching server could be v 2.0)
I have no time to write this right now (though it's vastly tempting),
but if people who are willing to dedicate large gobs of time want to
send me email, I'd be happy to introduce you all and perhaps even set up
a majordomo list....
-AJS
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: Todd Knarr <[EMAIL PROTECTED]>
Subject: Re: Linux - Memory model / protection scheme
Date: 22 Aug 1999 04:48:54 GMT
Pizzi <[EMAIL PROTECTED]> wrote:
> here's my first and most important question: how can an OS afford a full
> page table set for each task?? that's a question for Win9x/WinNT as well as
> for linux. if you're using a 4G virtual address space, that's 4MB's of page
> tables (+ a 4k page table directory) per task, which is a lot.
Easy: you only have entries in the page tables for pages that actually
exist in the process's address space. If a process takes up 4 megabytes
of virtual memory, it only requires page table entries for 4MB, not 4GB.
Also, some page table entries for shared pages can go in the system page
table, and page tables can themselves be paged out if all the pages they
point to are paged out.
--
It may be great to soar with the eagles, but weasels don't get sucked into
jets.
------------------------------
From: stephen chan <[EMAIL PROTECTED]>
Subject: Re: generating random numbers
Date: Sat, 21 Aug 1999 22:06:21 -0700
God damn!
Thanks Clifford.
==================================================
Clifford Kite wrote:
> stephen chan ([EMAIL PROTECTED]) wrote:
>
> : I've got this short piece of code that generates random numbers.
>
> : =============================================
>
> : #include <stdio.h>
> : #include <stdlib.h>
> : #include <time.h>
>
> : int main(void)
> : {
> : int i;
> : int random_num;
>
> : srand((unsigned int)time(NULL));
>
> : for(i=0;i<100;i++)
> : {
> : random_num=1+(int) (10.0*rand()/(RAND_MAX+1.0));
> : printf("%d\t",random_num);
> : }
> : }
>
> : ===============================================
>
> : It's suppose to generate random numbers between 1 to 10,
> : but after testing, it generates random numbers between 0 to 10.
> : What am I doing wrong?
>
> I can't resist this since it's about the only kind question posted to
> this group that I'm qualified to answer.
>
> Did you notice that all the 0s occur at the far left side of the screen
> *and* for every 0 the number on the far right for the preceding row is
> a 1?
>
> --
> Clifford Kite Not a guru. (tm)
> [EMAIL PROTECTED] Better is the enemy of good enough.
------------------------------
From: "Pizzi" <[EMAIL PROTECTED]>
Subject: Re: Linux - Memory model / protection scheme
Date: Sun, 22 Aug 1999 01:23:38 -0400
>Easy: you only have entries in the page tables for pages that actually
>exist in the process's address space. If a process takes up 4 megabytes
>of virtual memory, it only requires page table entries for 4MB, not 4GB.
>Also, some page table entries for shared pages can go in the system page
>table, and page tables can themselves be paged out if all the pages they
>point to are paged out.
i see... but don't the page tables still have to be there though? even if
only entries for the 4mb's are filled out?
------------------------------
From: newsseeker <[EMAIL PROTECTED]>
Subject: Re: update_vm_cache
Date: Sun, 22 Aug 1999 01:17:22 -0500
I put the same question to the linux-kernel mailing list and got greeted
with cries of anguish that this question was asked again for the >1000th
time. However they did give me an answer which is:
The VFAT support in 2.3.12 is broken, therefore, do not include VFAT file
system support when compiling your 2.3.12 kernel. Unfortunately, this
means you will not have any ability to use your fat16/32 partitions.
Hopefully, they will get this fixed soon.
--nwskr
Hee-Chul Yun wrote:
> I upgraged my kernel from 2.2.5 to 2.3.12. It seemed to work well..
> but when i loaded vfatmodule to mount my fat32 partition i got a message
> that there's no reference to 'update_vm_cache' function.
> Is there anyone who have same problem?
>
> --
>
> Hee-Chul, Yun e-mail: [EMAIL PROTECTED]
> KAIST CS Dept, CA Lab. Phone : 5552(Lab), 017-755-9413
------------------------------
From: XuYifeng <[EMAIL PROTECTED]>
Subject: Linux's faults
Date: Sun, 22 Aug 1999 14:12:28 +0800
If I am right, Linux has design problem for Large server application,
Larger server always has many socket and file handles opened at same
time,
think about its fd_set structure for select() functions, it only allow
1024 socket
handles opened same time, problem is both socket handle and file handle
shares
same file descriptor table, if there is lots of file opened at same
time, for examples,
1024 files opened, because Linux's fd_set structure uses bitmap
structure,
you event can not open a socket for select()!
because it's fileno is 1025, there is no way to put this fd into fd_set
structure.
unlike WindowsNT, it fd_set structure is not constructed in bitmap
structure
(Linux is in this way), also NT's default fd_set size is 64, but it can
put any socket
handle into this structure and call select()!
I recently encounter the problem, I am designing a server application,
on NT I
can give service to 500 users without any problem, but on Linux using
pthread library,
it prevent me from open files and socket handles more than 1024.
by the way, Linux has too many limits.
XuYifeng
------------------------------
From: Tranceport <[EMAIL PROTECTED]>
Subject: Re: X Windows developement
Date: Sun, 22 Aug 1999 06:44:32 GMT
> The one people tend to cite is the O'Reilly series. Unfortunately,
> they haven't been updated in Quite Some Time.
>
> The one that has impressed me most is the set published by Digital
> Press. I was at the local (DFW) Fry's a few weeks back and debated
> buying it the overview. I don't do any direct X work, and thus
> couldn't justify the $75 for the one *VERY IMPRESSIVE* volume which
> appeared up-to-date to the point of (if memory serves) including
> X11R6.4 stuff...
>
> You might check with the "team" on whether anyone has extra copies of
> docs, or pointers to auctions/used editions/...
>
> An creative alternative might be to see if you could get some funding
> from The Project to buy a documentation set. That would appear to lie
> within the parameters of what their policies allow them to fund, and
> should represent a reasonably valuable way to use funds.
>
> I've sent money in to XFree86 over the last couple years; I'd just as
> soon see it used for something useful like getting documentation to
> developers as anything else...
Thanks. That's a good tip!
Trance
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: "Little Rascal" <[EMAIL PROTECTED]>
Subject: Re: I HATE LT WIN MODEM!!!!!!!!!!!!!!!
Crossposted-To: comp.os.linux.hardware,redhat.hardware.arch.intel
Date: Sun, 22 Aug 1999 07:09:31 GMT
liuyb <[EMAIL PROTECTED]> wrote in article
<[EMAIL PROTECTED]>...
> I have a lt win modem, but I can't let it work in linux. I tried all
means
> and spend a lot of time , the result is the same. So I hate it.
> I HATE WIN MODEM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> ------------------ Posted via CNET Linux Help ------------------
> http://www.searchlinux.com
>
Thats what you get when you buy brain dead micro shaft products. Buy a
real modem instead.
------------------------------
From: Jordi Backx <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,redhat.hardware.arch.intel
Subject: Re: I HATE LT WIN MODEM!!!!!!!!!!!!!!!
Date: Sun, 22 Aug 1999 09:16:48 +0200
liuyb wrote:
> I have a lt win modem, but I can't let it work in linux. I tried all means
> and spend a lot of time , the result is the same. So I hate it.
> I HATE WIN MODEM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> ------------------ Posted via CNET Linux Help ------------------
> http://www.searchlinux.com
Bad news: there are also WIN-printers, e.g. HP deskjet 710.
Burn all WIN-shit !!!!!
------------------------------
** 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
******************************