Subject: Linux-Misc Digest #607
From: Digestifier <Linux-Misc-Request@senator-bedfellow.MIT.EDU>
To: Linux-Misc@senator-bedfellow.MIT.EDU
Reply-To: Linux-Misc@senator-bedfellow.MIT.EDU
Date:     Fri, 28 Jan 94 03:13:16 EST

Linux-Misc Digest #607, Volume #1                Fri, 28 Jan 94 03:13:16 EST

Contents:
  Re: port DOS games to Linux..? (Marc J. Fraioli)
  SLS a1 (Peter Lu)
  Re: New GCC 2.5.9 and new libs??? (Jon Cardwell)
  Re: Intel Ethernet Express - need advice on checking it (William C Fenner)
  Non-blocking I/O (Brian Quandt)
  Re: MSDOS Better than Linux (Roger Vaughn)
  Re: port DOS games to Linux..? (David Biesack)
  BogoMips-is higher or lower better? (Dan Newcombe)
  Re: Linux Distributions and the Shadow Password Suite (Peter Eriksson)
  Re: Anybody using a UPS? (Brandon S. Allbery)
  Re: Linux as a programming development environement (Warner Losh)
  PC-scancode terminals (Frank Brokken)
  Re: Does the Mitsumi 2xSpeed CD-ROM work with Linux? (Thomas G. McWilliams)
  Re: Good Linux Package for C course ? (Jonathan Magid)
  Pascal Compilier (Dumler)
  Mike Horwath Please Read (Eric Poole)
  [Q] Linux & OS/2 compatability (Thomas Pfau)
  Re: New GCC 2.5.9 and new libs??? (Thomas Boutell)

----------------------------------------------------------------------------

From: mjf@clark.net (Marc J. Fraioli)
Subject: Re: port DOS games to Linux..?
Date: 27 Jan 1994 17:39:08 -0500

In article <CKA7KD.5r0@hpwin052.uksr.hp.com>,
Mr. Bassman <bassman@isoit034.bbn.hp.com> wrote:
>       How do I make my process sleep for a very small, but accurate amount
>of time ?  Did I miss something somewhere ?  (Probably...)  It'd be useful
>to be able to set alarm() in the same way. I know I could read the clock
>and do loads of compares, but this is busy-waiting, and I'd rather have the
>process sleep (for several reasons).
>
>       If I wanted to write a game, I'd need this accuracy. Given that
>the system is multi-user, it's not good to hog the processor. Could someone
>possibly mail me some advice ?
>
Use select(2)-- it won't hog the CPU, and it can give you times < 1 sec.
An example from W. Richard Stevens' book, "Advanced Programming in the
UNIX Environment", p. 705:

#include <sys/types.h>
#include <sys/time.h>
#include <stddef.h>

void sleep_us (unsigned int nusecs)
{
  struct timeval tval;

  tval.tv_sec = nusecs / 1000000;
  tval.tv_usec = nusecs % 1000000;
  select (0, NULL, NULL, NULL, &tval);
}

This compiled fine on Linux 0.99pl14 (Slackware 1.1.1), although I didn't
try to use it in anything.  It's not guaranteed, BTW, that your process
will re-awaken exactly when you want it to.  If the load is high, it won't.
But if a user is playing a game on a basically single-user system, it
probably won't be a problem.

-- 
Marc Fraioli          |  "We will create new Hiroshimas and Nagasakis.  I
mjf@clark.net         |   will not hesitate to use nuclear weapons...You will
                      |   get your own Chernobyl in Germany."
                      |                         -Vladimir Zhirinovsky

------------------------------

From: swift@world.std.com (Peter Lu)
Subject: SLS a1
Date: Fri, 28 Jan 1994 01:08:00 GMT


Hi,

        Could anyone tell me the procedures for building my own copy of
the SLS a1 (boot) disk?  I need to make a special version of the kernel
so that it recognizes my large 664 Meg ESDI drive (whose controller uses
sector remapping to get the head count to 15).  I do have the capability
to build the kernel via another RLL disk, which will not be in the target
system.

        I can build a boot disk that uses my other floppy drive (b:) as
my root device and do the installation to the ESDI drive in that fashion.
However, for elegance, I would really like to know the step that is
necessary to put the root device data onto the same floppy that has the
boot image (in drive a:).

        Thanks in advance for any info.  Please email
swift@world.std.com.

                                                Peter Lu

------------------------------

From: jdc@umi.com (Jon Cardwell)
Subject: Re: New GCC 2.5.9 and new libs???
Date: 27 Jan 1994 18:31:54 -0500

In article <CK6v5y.8xv@acsu.buffalo.edu> vohwi-d@acsu.buffalo.edu (David A. Vohwinkel) writes:
>I was told that they were coming out in a couple weeks around christmas...
>anyone know what the status of them is??  I like to be on the bleeding
>edge...  :-)
>
>                               Thanks
>
>                                       Dave

I just got through fetching, building, installing the gcc 2.5.8
from prep.ai.mit.edu. I didn't see 2.5.9 there though...


>-- 
>  David A Vohwinkel        
>Unix Consulting   ^ ^     vohwi-d@acsu.buffalo.edu
>  & Operations    0 0    @ The State University of New York at Buffalo   
>--------------oOO-(_)-OOo----------------------------------------------------

--Jon Cardwell
University Microfilms International

------------------------------

From: fenner@cmf.nrl.navy.mil (William C Fenner)
Subject: Re: Intel Ethernet Express - need advice on checking it
Date: Thu, 27 Jan 1994 23:50:29 GMT

In article <1994Jan27.222617.18152@dxcern.cern.ch>,
Sebastian Rahtz <rahtz@dxcern.cern.ch> wrote:
>In <2i67gl$if@aurora.ncdc.noaa.gov> jfauerba@aurora.ncdc.noaa.gov (John Fauerbach) writes:
>>If anyone gets linux to work on this card, let me know.  We have several
>>PC with this card that we can't use for linux.
>
>theres working and theres `working'. with the help of several kind
>people, i eventually got mine alive. but its totally unreliable ...

Just as another data point, my girlfriend has one of these in her PC; we
first used the alpha driver that came with pl14c, then whatever came with
pl14t (I didn't even check when I got 14t if there was a new driver); both
drivers worked flawlessly on her setup.

Disclaimer:  I don't know what her setup *is*, since we had no need to futz
with things, since they just worked on the first try.

  Bill
-- 
Bill Fenner                  fenner@cmf.nrl.navy.mil

------------------------------

Crossposted-To: comp.os.linux,comp.os.linux.development,comp.os.linux.help
From: quandt@cs.umr.edu (Brian Quandt)
Subject: Non-blocking I/O
Date: Fri, 28 Jan 1994 02:05:42 GMT

Does Linux have support for non-blocking i/o routines?

Also, what is the largest amount of virtual memory that can be supported
under Linux? 

Here's what I'm trying to do:
        Create a real-time buffer that is very large.  I'd like to 
        do this as a piped process.

        p1 | p2 | p3

        where

        p1 is a the process running in real time generating or sayu around
        1.5MB/sec

        p2 just reads data from p1 and trys to send it out to p3, if it
        can't (non-blocking writes) it just allocates memory and
        keeps it there until it can then write out to p3.  And since
        Linux supports Vitural memory ... I can effectively create
        a real time cache that is as large as my virtual space (disk drive).

        p3 is just some process that does not run in real time.  Note that
        this assumes that p1 dies before we run out of VM.



------------------------------

From: rvaughn@vt.edu (Roger Vaughn)
Subject: Re: MSDOS Better than Linux
Date: Thu, 27 Jan 1994 23:35:12 GMT

In article <CK5JK1.L5z@eurom.fsag.rhein-main.de> misch@eurom.fsag.rhein-main.de (Michaela Merz) writes:
>From: misch@eurom.fsag.rhein-main.de (Michaela Merz)
>Subject: Re: MSDOS Better than Linux
>Date: Mon, 24 Jan 1994 20:57:36 GMT


>On Mon, 24 Jan 1994 14:08:46 GMT,
>debruijn@cs.utwente.nl (0000-Admin(0000)) wrote:
>Hmm - don't flame me - but we should take this guy more seriously - even
>he might have used the wrong words. Linux *is* just toy - as long as
>there are no real applications available. So, don't just flame about
>messy dos - write applications. Where's a wordprocessor, a desktop
>publishing tool ........ ? Don't ignore the available shareware
>and/or public domain tools for those ugly os like win**ows. There's
>a lot more available. And it is *not* that easy to write well designed
>win**ows progs. 

>mm.

Well, the reason it isn't easy to write programs for Windows is because the 
Windows team put more though into what to put on their newest T-shirt than on 
how to design the API.  (Ask any MS-er!)  Windows has the most 
#$^#$&$!^!$#-poor API of *any* system I have ever used.  Trust me, I'm a 
Windows programmer!  (Just say No!)

Windows - No threads/processes, no blocking calls, no fork() and no IPC!

rog

------------------------------

From: sasdjb@unx.sas.com (David Biesack)
Subject: Re: port DOS games to Linux..?
Date: Thu, 27 Jan 1994 18:18:35 GMT

bassman@isoit034.bbn.hp.com (Mr. Bassman) writes:

>       How do I make my process sleep for a very small, but accurate amount
>of time ?  Did I miss something somewhere ?  (Probably...)  It'd be useful
>to be able to set alarm() in the same way. I know I could read the clock
>and do loads of compares, but this is busy-waiting, and I'd rather have the
>process sleep (for several reasons).

I've seen the following in many, many Unix apps:

  void
  usleep (usecs)
       unsigned long usecs;
  {
    struct timeval tv;
    tv.tv_sec  = usecs / 1000000L;
    tv.tv_usec = usecs % 1000000L;
    (void) select (0, 0, 0, 0, &tv);
  }


djb
--
David J. Biesack                        SAS Institute, Inc.     
Object Programming Technology           SAS Campus Drive        
sasdjb@unx.sas.com                      Cary, NC 27513-2414     
mcnc!sas!sasdjb                         (919) 677-8000 ext. 7771


------------------------------

From: NEWCOMBE@AA.csc.Peachnet.EDU (Dan Newcombe)
Subject: BogoMips-is higher or lower better?
Date: 27 Jan 1994 08:35:42 -0600

Last night I was playing around with my CMOS settings and I noticed that
my BogoMips delay level had changed.

My question then is:  Is it better to have a higher or lower BogoMips number?
(Is it better to have loved and lost than not to have loved at all?)

    -Dan
--
Daniel A. Newcombe                                  Clayton State College
Computing Services                                  Morrow, GA 30260
E-Mail Address: newcombe@aa.csc.peachnet.edu        (404)-961-3421
-=-=-=- I can handle MIME mail, so don't be afraid to send me some -=-=-=-
- Kayleigh I never thought I'd miss you, and Kayleigh I'd hoped
  that we'd always be friends.  We said our love would last forever,
  so how did it come to this bitter end.   (Marillion, Kayleigh)


------------------------------

From: peter@ifm.liu.se (Peter Eriksson)
Subject: Re: Linux Distributions and the Shadow Password Suite
Date: 26 Jan 1994 16:40:52 +0100

jfh@rpp386 (John F. Haugh II) writes:

>In article <1994Jan21.180607.17012@swan.pyr> iiitac@swan.pyr (Alan Cox) writes:
>>And unfortunately its neither the first time nor will it be the last time this
>>has happened. But it is a distribution of linux problem not a linux issue -
>>and nobody has every claimed the distributions are GPL - much is BSD, or
>>assorted author copyrights.

>Uh, I've read the BSD copyright.  If you guys have trouble with my
>copyright, you guys should be throwing fits over the BSD copyright.

>This boils down to exactly one thing -- several distributors have
>threatened to "kill" Shadow if I don't GPL the code.

The problem is that your copyright strictly forbids commercial use,
whereas the BSD one doesn't.


***** From libc-4.5.8 and 5.14alpha:

/usr/include/shadow.h:

/*
 * Copyright 1988, 1989, 1990, John F. Haugh II
 * All rights reserved.
 *
 * Use, duplication, and disclosure prohibited without
 * the express written permission of the author.
 */



/usr/src/libc-linux/grp/gshadow.c:

/*
 * Copyright 1990, 1991, John F. Haugh II
 * All rights reserved.
 *
 * Permission is granted to copy and create derivative works for any
 * non-commercial purpose, provided this copyright notice is preserved
 * in all copies of source code, or included in human readable form
 * and conspicuously displayed on all copies of object code or
 * distribution media.
 */


/Peter

------------------------------

From: bsa@kf8nh.wariat.org (Brandon S. Allbery)
Subject: Re: Anybody using a UPS?
Date: Thu, 27 Jan 1994 23:40:05 GMT

In article <CK8xEr.7In@cuug.ab.ca>, barkers@cuug.ab.ca (Scott Barker) says:
+---------------
| I was just wondering how many people out there are using a UPS for their Linux
+------------->8

I am.  Just yesterday the power went off for only 1/4 second; the computer
didn't notice at all, thanks to the UPS.  Better than a rather *frustrating*
kind of crash (such a big crash from such a short power failure...).

++Brandon
-- 
Brandon S. Allbery         kf8nh@kf8nh.ampr.org          bsa@kf8nh.wariat.org
"MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development."  ---dmeggins@aix1.uottawa.ca

------------------------------

From: imp@boulder.parcplace.com (Warner Losh)
Subject: Re: Linux as a programming development environement
Date: Thu, 27 Jan 1994 23:15:44 GMT

In article <2i6p7g$pk@darkstar.UCSC.EDU> mpcline@cats.ucsc.edu
(Matthew Paul Cline) writes: 
>3) I'd like to do object oriented programming.  How good is the Linux
>   distribution of g++?

There are a large number of bugs in g++ (all of them, <= 2.4.x).
Linux's g++ doesn't introduce any that aren't in the other systems
that I've used (as far as I can tell).  However, the large number of
bugs doesn't impact most causual use of C++.  I haven't tried 2.5.x
yet, so I don't know if the situation is better or not.

Warner
-- 
Warner Losh             imp@boulder.parcplace.COM       ParcPlace Boulder
I've almost finished my brute force solution to subtlety.

------------------------------

From: frank@icce.rug.nl (Frank Brokken)
Subject: PC-scancode terminals
Date: Thu, 27 Jan 1994 14:37:55 GMT

Hello world,

        I'm reading the book `termcap & terminfo' by John Strang,
Linda Mui and Tim O'Reilly. In it, on p.5, they write

        ''...has led to the development of terminals called
         PC-scancode terminals''

As it is, nobody around here uses a VT-100 or whatever terminal: all
Linux and other boxes are based on PC's. 

Would anybody have any information about termcap/terminfo definitions
for PC-terminals, or: does anybody have information about how to access
the PC's scancodes using Linux ? 

Any help/clues/whatever in the right direction would greatly be 
appreciated by

        |
     ---|---     
=====+==0==+=====
     |     |

      Frank

        E-mail to: f.b.brokken@icce.rug.nl      
               or: frank@icce.rug.nl
        Phone:     (+31) 50 63 36 88 (mo-vr, 9:00-17:00 MET)
                   (+31) 59 03 22 23 (otherwise)

[ I can be mailed directly using one of the given e-mail addresses. If
  I get useful info, I'll summarize it and post the summary back on
  the net. Thanx in advance
]

        


------------------------------

From: tgm@netcom.com (Thomas G. McWilliams)
Subject: Re: Does the Mitsumi 2xSpeed CD-ROM work with Linux?
Date: Thu, 27 Jan 1994 14:41:33 GMT

cosc19v2 (cosc19v2@menudo.uh.edu) wrote:
: I tried to recompile the kernel (pl14t) but there is no configuration
: how I may change the interrupt for CD ROM.
: Well, I may hack around the kernel, but I want to be safe, and
: don't want to cause troubles when I patch the source tree in the future.
: Is there anyone who resolved this problem ?


The Mitsumi configuration constants are in your kernel source tree
in /usr/src/linux/include/linux/mcd.h --- that is the file to edit.

Thomas

------------------------------

From: jem@sunSITE.unc.edu (Jonathan Magid)
Subject: Re: Good Linux Package for C course ?
Date: 28 Jan 94 00:03:24 GMT

In article <2i9hvn$5iu@menudo.uh.edu>,  <ta107109@menudo.uh.edu> wrote:
>
>Hi, I am teaching C programming course this semester (on unix platform), 
>and when I talked about Linux in the class, many students were interested.
>However, my section is for non-cs majors who do not have any computer
>backgrounds.   I myself am using Slackware and happy with it, but
>I guess that the package is too big.

Although its getting a bit dated, I reccomend the MCC distribution 
(ftp://sunsite.unc.edu/pub/Linux/distributions/MCC/0.99.p10+)

Especially, if you were you to replace the stock kernel (99p10)
with something more recent, and perhaps the libraries and compiler.

Except for networking, everything in MCC was extremely solid.

In combination with tinyX: (ftp://sunsite.unc.edu/pub/Linux/distributions/tinyX)

You could do very well.

cheers,
jem.

------------------------------

From: dumler@lamar.ColoState.EDU (Dumler)
Subject: Pascal Compilier
Date: 28 Jan 94 03:11:42 GMT

Hey is there anyone out there who knows where I can find a Pascal Compilier for my linux machine.  I have archied around and have had little luck.  I know
that one exists because I have read about it.

Thanks so much.



<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<>=-=-=-=-=-=-=-=-=-=-=- Name: David Dumler -=-=-=-=-=-=-=-=-=-=-=<>      
<>              Address: dumler@lamar.colostate.edu               <>
<>           Address: dd880357@longs.lance.colostate.edu          <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

P.S. If anyone knows of one, could you please write me a letter rather
than post your answer.  Write to dumler@lamar.colostate.edu Thanks. :->





------------------------------

From: epoole@leotech.mv.com (Eric Poole)
Subject: Mike Horwath Please Read
Date: Wed, 26 Jan 94 14:21:20 GMT
Reply-To: epoole@leotech.mv.com

My apologies to all for the off-topic nature of this post.

I have seen evidence that articles posted here to
comp.os.linux.* (and only to comp.os.linux.*) are not
getting out; this is an attempt to fix that problem if it
exists.

Because the problem only seems to exist in comp.os.linux.*,
I cannot use any of the groups like alt.test.

Thank you for your indulgence and understanding.

Mike, if you receive this, please quote it back to me,
headers and all, in an e-mail message to
epoole@leotech.mv.com ... thanks.

 . . . . . ep



------------------------------

From: pfau@cnj.digex.com (Thomas Pfau)
Subject: [Q] Linux & OS/2 compatability
Date: 27 Jan 1994 21:35:24 -0500

I've got an extended partition with three logical drives (one swap, two
data) which was corrupted when I booted up tonight.  I was able to patch
it back together with linux fdisk and get my data back without any
problems but I was wondering if OS/2 might be responsible for this
corruption?  I just installed OS/2 this past week.

OS/2's boot command only works if the DOS-OS/2 partition is marked
bootable.  I've been running with the linux primary partition marked
bootable and selecting between DOS and linux with LILO.  Now that I've
got OS/2 installed, it wants the DOS partition marked bootable in order
to use the boot utility.

Has anyone else experienced partition table problems (particularly
extended partitions) with OS/2 installed?  Has anyone been archiving the
recent discussions in the linux groups regarding OS/2?
-- 
tom_p                           | I could get a new lease on life
internet:   pfau@cnj.digex.net  | if only I didn't need the first
compuserve: 73303,1136          | and last month in advance.

------------------------------

From: boutell@netcom.com (Thomas Boutell)
Subject: Re: New GCC 2.5.9 and new libs???
Date: Wed, 26 Jan 1994 22:18:19 GMT

In article <1994Jan25.233935.24125@synopsys.com>,
Joe Buck <jbuck@synopsys.com> wrote:
(GCC)
>Unless something goes very wrong, there will probably be no more releases
>until 2.6.0 and that probably won't be out for a while.

I wouldn't be so sure. I have three words for C++ under 2.5.anything:

"Broken," "broken" and "broken".

2.4.5 was underpowered for C++, but at least it *worked.* I have had
nothing but grief from the 2.5.x series.

(Note that these comments do NOT apply to regular C programs.)

-T
-- 
boutell@netcom.com, purveyor of fine HTML pages to the biology trade.
<a=href "http://siva.cshl.org/boutell.html">Click <em>here</em></A>

------------------------------


** 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: Linux-Misc-Request@NEWS-DIGESTS.MIT.EDU

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: Linux-Misc@NEWS-DIGESTS.MIT.EDU

Linux may be obtained via one of these FTP sites:
    nic.funet.fi				pub/OS/Linux
    tsx-11.mit.edu				pub/linux
    sunsite.unc.edu				pub/Linux

End of Linux-Misc Digest
******************************
