Subject: Linux-Development Digest #928
From: Digestifier <Linux-Development-Request@senator-bedfellow.MIT.EDU>
To: Linux-Development@senator-bedfellow.MIT.EDU
Reply-To: Linux-Development@senator-bedfellow.MIT.EDU
Date:     Tue, 19 Jul 94 08:13:05 EDT

Linux-Development Digest #928, Volume #1         Tue, 19 Jul 94 08:13:05 EDT

Contents:
  Re: DOES ANYONE KNOW ABOUT THE MAILINGLISTS? (hello, is anyone there?) (Frank Derichsweiler)
  OpneGL and Linux (Ming Shih)
  pins on serial/parallel port? (Daniel Garcia)
  Re: Accessing physical memory under Linux (Donald Becker)
  Re: News Screwup (Andrew Anderson)
  Re: MAP_SHARED? (Beeblebrox)
  Re: ping -f crashes (at least) linux-1.1.29 (Malcolm Reeves)
  fact on linux vs sun (Supat Faarungsang)
  VoxWare 2.90 with MS Sound System (patch avail) (Hannu Savolainen)
  Park routine for old MFM/RLL drives (David Lyle Robinson)
  New Linux kernels won't boot (James E. Carpenter)
  gcc and Linux (compiling)... (Dwight M Evers)
  VoxWare 2.90 with SB16/PAS16 patch available. (Hannu Savolainen)
  Re: Linux Performance Enhance ?
  [Q] Bas Laarhoven's (author of ftape) address? (Kevin Greiner)
  Re: News Screwup (Mark A. Horton KA4YBR)
  Re: Linux Performance Enhance ? (Jos Horsmeier)
  Re: fact on linux vs sun (Naresh Sharma)
  Re: fact on linux vs sun (Rob Janssen)

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

From: i31ade@applsrv.rz.unibw-muenchen.de (Frank Derichsweiler)
Crossposted-To: comp.os.linux.admin
Subject: Re: DOES ANYONE KNOW ABOUT THE MAILINGLISTS? (hello, is anyone there?)
Date: 18 Jul 1994 19:34:33 GMT

thx1139@knuth.cba.csuohio.edu (tim werner) writes:


>Hi,

>I posted this yesterday just before the UTexas flood, so I'm going
>to try again.

>Does anyone know what's going on with the linux mailinglists?  I'm
>getting no mail, and no response to any of my info queries.

>tw

Hi !

I am on the Linux mailing list. It works fine !!

Have you the correct adress ??

Frank


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

From: shih@ERC.MsState.Edu (Ming Shih)
Subject: OpneGL and Linux
Date: 18 Jul 1994 19:47:16 GMT
Reply-To: shih@ERC.MsState.Edu

Hi, maybe y'all have this discussion before, I would appreciate any opinion....

I would like to know if OpenGL would be implemented on linux, either now or near future.
I would like to develop softwares with graphics on SGI and PC/linux.  Xlib will work, but
if OpenGL should work on Linux, then I would like to use it at the beginning, so that I don't
have to write 2 sets of code. Any information is welcome and appreciated.

Thanks.

Ming-Hsin Shih




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

From: kender@spawn.erinet.com (Daniel Garcia)
Subject: pins on serial/parallel port?
Date: 19 Jul 1994 00:14:48 GMT
Reply-To: kender@eri.erinet.com

Hello alls,

I need to be able to read the pins on both serial ports and parallel ports,
i.e. i need to read bit by bit information coming down one (or more) lines,
and send bit by bit info out over other lines.  Any pointers to references
on how to do this?  I'm about to go look at the serial driver in linux,
but also figured I would ask here as well - since there are probably ppl
here who have done it.

Thanks in advance!

D

-- 
 Daniel Garcia - kender@[eri.erinet.com|esu.edu] - Soon to be PhD Student.
UseLinuxReadMoreThinkALotFightClipperBelieveWritePlayMusicOpenHeartsLiveBreath
LoveThinkFeelListenActReasonWatchLearnRideFlySpeakWinFightRiseSingShoutCryDie
<A HREF=http://www.esu.edu/~kender">My Homepage</A> 

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

From: becker@cesdis.gsfc.nasa.gov (Donald Becker)
Crossposted-To: comp.os.linux.help
Subject: Re: Accessing physical memory under Linux
Date: 18 Jul 1994 20:17:27 -0400

In article <KATKERE.94Jul18164153@vision.ucsd.edu>,
Arun Katkere <katkere@ece.ucsd.edu> wrote:
>Hi:
>       I am trying to interface a controller board which communicates via
>memory-mapped I/O using 128 bytes starting from 0xD000:0000. I am not sure
>how I can read/write these locations under Linux.

BTW, that address is 0xD0000 in 32 bit flat addressing.

>Under DOS (using gcc), dosmemput and dosmemget work fine. Ideally, I need
>similar functions that can be called under user (or super-user) processes. I
>don't want to hack into the kernel code if possible.

You'll need root permission...

>What is the most efficient way I could accomplish memory read and write to
>address 0xD000:0000 and around? Please reply by email and I'll summarize.
>
>I couldn't get the necessary information from khg-0.5 or the FAQ.

Basically you have to mmap(... open("/dev/kmem",...)...).
I have example code in some of my ethercard diagnotic programs.  Check out

http://cesdis.gsfc.nasa.gov/linux/diag/diagnostic.html
 or, for the WWW-impaired,
cesdis.gsfc.nasa.gov:/pub/linux/diag/e21.c

-- 
Donald Becker                                     becker@cesdis1.gsfc.nasa.gov
USRA Center of Excellence in Space Data and Information Sciences.
Code 930.5, Goddard Space Flight Center,  Greenbelt, MD.  20771
301-286-0882         http://cesdis.gsfc.nasa.gov/pub/people/becker/whoiam.html

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

From: andrew@amelia.db.erau.edu (Andrew Anderson)
Subject: Re: News Screwup
Date: 19 Jul 1994 00:32:11 GMT

Timothy Kulig (tim@myhost.subdomain.domain) wrote:
: Why do I keep getting tim@myhost.subdomain.domain whenever I post a
: message to a newsgroup???

: How can I make this actually say systel.com, my own host?

I'm using tin, and I had to edit files in /usr/local/lib/news.

--
|===========================================================================|
|  Andrew Anderson                              andersoa@erau.db.erau.edu   |
|  Novell Network System Administrator          andersoa@bart.db.erau.edu   |
|  Linux System Administrator                   andrew@wilbur.db.erau.edu   |
|                                                                           |
| I don't speak for ERAU, and God knows I don't want them to speak for me!  | 
|===========================================================================|

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

From: M.S.Ashton@dcs.warwick.ac.uk (Beeblebrox)
Subject: Re: MAP_SHARED?
Date: Mon, 18 Jul 1994 20:28:15 GMT

d90-cka@dront.nada.kth.se (Carl Karlsson) writes:

>I'm trying to compile a few of my SunOS apps on my linux box at home,
>and now I'm experiencing some problems with mmap.
>I'm trying to mmap(...MAP_SHARED, RDWR...), but all I get is EINVAL.
                                   ^^^^
That's your problem: not MAP_SHARED.

>Finding this in mmap.c in the kernel probably gives the answer:

It does:

>   if (prot & PAGE_RW) /* only PAGE_COW or read-only supported right now */
>       return -EINVAL;

>Is this the hard fact of life? 

Yup. COW is Copy On Write, btw.

>I can't make a shared RW map? Awww... Why?  

It just hasn't been written yet.

>When will I be able to do this?

I dunno, I'd like this too for the work I'm doing at the moment - I was
thinking about investigating FreeBSD to see if that was able to provide this
feature.  I was going to mail Linus and whinge but mmap.c wasn't attributed
to Linus and I couldn't find a usercode to complain at.  Perhaps someone
could poke Linus in this direction:

*Read/Write mapping of files please Linus*
___
M.S.Ashton@dcs.warwick.ac.uk              M.S.Ashton@csv.warwick.ac.uk
C++ consultant and emacs support.         Mail me if you have any problems.

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

From: reeves@pangea.usask.ca (Malcolm Reeves)
Subject: Re: ping -f crashes (at least) linux-1.1.29
Date: 19 Jul 1994 00:44:39 GMT

Guenther Thomsen (thomsen@cs.tu-berlin.de) wrote:
: Hi,

: if I try ping -f vera from doma ( both 8Mb RAM, linux 1.1.29, libc-4.5.26 
: connected by ppp-2.1.2a ) my system crashed 

This is not a 1.1.29 problem - it works fine for me with a 3c509 ethernet
card. Maybe your hardware can't send/receive back to back packets and there
is some kind of buffering problem ! My 3c501 ethernet card was capable of
crashing almost any kernel ! It is now acting as concrete agregate - on of
the better uses for 3c501's .....
--
==============================================================================
Malcolm Reeves, Geological Engineering, University of Saskatchewan, Saskatoon,
SK, S7N 0W0 aka reeves@rocky1.usask.ca aka reeves@dvinci.usask.ca
==============================================================================

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

From: supat@nuntana.animal.uiuc.edu (Supat Faarungsang)
Subject: fact on linux vs sun
Date: 18 Jul 1994 20:49:57 GMT

I test sun4.1.1 on sparcII vs linux1.1.29 on 486dx-50 and found that
in all features linux has greater performance
speed is about 10% faster on linux in all kind of programs.

My friends say this should not possible and run floating point
on sun should be much faster but I test several times
linux always 10% faster than sun.

Is anyone has the same experiance?

supat

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

From: hannu@voxware.pp.fi (Hannu Savolainen)
Subject: VoxWare 2.90 with MS Sound System (patch avail)
Date: Mon, 18 Jul 1994 22:42:58 GMT

The stock v2.90 of WoxWare did't work with MSS cards if the DMA
channel was something else than 3. There is a patch in sunsite.unc.edu which
fixes this problem. It contains also some mixer stuff for SG NX Pro card.
It was already in v2.5 but not in v2.90.

The patch file is snd-driv-2.90.patch2.gz and is available from
sunsite.unc.edu (pub/Linux/Incoming just now).

Hannu
-- 
=============================
Hannu Savolainen
hannu@voxware.pp.fi
"Don't use Windows since there is a door!"

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

From: robinson@ichips.intel.com (David Lyle Robinson)
Subject: Park routine for old MFM/RLL drives
Date: 18 Jul 94 19:11:12 GMT


Does anyone have any code for "parking" the old
MFM or RLL harddrives?  My hard drive has been
having random errors since I converted to Linux,
and I'm suspecting its because the shutdown code
relys on auto parking drives (which one of mine
is not).  I'd like to patch shutdown to park
the drive when everything is done.

Thanks,
David Robinson

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

From: jimc@zachary.riva.com (James E. Carpenter)
Subject: New Linux kernels won't boot
Date: 19 Jul 1994 00:13:29 -0400

I have been using 1.0.8 for a while and finally decided to upgrade. So I went
and got 1.1.23. When I got it to compile, it wouldn't boot. I just got 1.1.30.
That won't boot either. I've NEVER had ANY problems booting Linux. So
something changed between 1.0.8 and 1.1.23.

When I boot the new kernel, it seems fine up to where it prints the kernel
version. Then it just hangs. No partition check or anything. I have configured
it all different ways, including disabling the scsi code. For hardware I have
a 286 with that special chip that makes it a 386SX-16. It has been able to run
Linux from the first days I started using it (whatever the version was in
September 1992). It only has 4 megs of memory. I have an IDE and SCSI drive,
but I tried 1.1.23 with a MFM and it still didn't work. Nothing has changed in
the hardware, so its got to be the kernel.

I know I have a crap machine here. And I am intending on upgrading ASAP. But
it'll be a shame if the newer versions of Linux will only run on more advanced
machines.
-- 
James E. Carpenter                           E-Mail: jimc@zachary.riva.com
23 Munroe Drive                                 Tel: (508) 643-0908
Plainville, MA  02762-1132

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

From: evers@plains.NoDak.edu (Dwight M Evers)
Subject: gcc and Linux (compiling)...
Date: Mon, 18 Jul 1994 21:58:04 GMT

        I was wondering if when you ( I in this case ) compile a program 
under Linux if the statement:


#include        <stdio.h>

{
        value1 = 10;
        value2 = 20;
        sum = value1 + value2;

        printf(" the sum of %i and %i is equal to %i",value1,value2,sum);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}
                is valid. I keep getting run errors. how do you compile 
and use gcc under Linux? I looked in the FAQ and I did what was told. Not 
a thing happens. I works under all other compilers I use.

        Please specific about the steps you take in getting this to work.

Thanx in advance.

============================================================================
                        |       "...peace is a thing which a person
Dwight M. Evers         |           must be willing to fight for..."
evers@plains.NoDak.edu  |
        NDSU            |                       -Abe Lincoln
============================================================================
 



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

From: hannu@voxware.pp.fi (Hannu Savolainen)
Subject: VoxWare 2.90 with SB16/PAS16 patch available.
Date: Mon, 18 Jul 1994 22:38:04 GMT

Hi,

Somebody may have noticed that the version 2.90 of VoxWare sound driver
doesn't compile if SB16 and/or PAS16 supports are enabled. The 
snd-driv-2.90.patch1.gz is a patch to this problem. It's available from
sunsite.unc.edu (pub/Linux/Incoming at this time).

Hannu
-- 
=============================
Hannu Savolainen
hannu@voxware.pp.fi
"Don't use Windows since there is a door!"

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

From: grante@reddwarf.rosemount.com ()
Subject: Re: Linux Performance Enhance ?
Date: Mon, 18 Jul 1994 21:09:46 GMT

Remco Treffkorn (remco@emc.rvt.com) wrote:

: I thake honest "gotos" over puzzles any time. 

: When you were taught to avoid "gotos", didn't he tell you there are
: exeptions to the rule :-)


: My priorities are:

:  1. Write eficient code.
:  2. Write "human readable" code.
:  3. Avoid gotos.
:  4. Avoid rarely used language features.

Exactly.  We must remember that rule 3 exists only as a good
rule-of-thumb about how to accomplish rule 2.  The whole point of
avoiding the "goto" was to allow people to write code that was easy to
read and understand (and hence, to maintain).

If it is easier to understand what's going on by using a goto (hint:
it rarely is) then go ahead and use it.  Sheesh, some people have
turned "goto considered harmful" into a religion.

--
Grant Edwards                                 |Yow!  Did an Italian CRANE
Rosemount Inc.                                |OPERATOR just experience
                                              |uninhibited sensations in a
grante@rosemount.com                          |MALIBU HOT TUB?

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

From: greiner@NeoSoft (Kevin Greiner)
Subject: [Q] Bas Laarhoven's (author of ftape) address?
Date: 18 Jul 94 21:06:57

I'm presently having problems with ftape 1.13b.  I keep getting
a "timer expired" error.  I've turned on the trace messages and
it appears to be a deadlock between the wait_segment and 
ftape_ready_wait routines.

I'd like to contact Bas Laarhoven, the author of ftape,
but get an unknown host with bas@vimec.nl (His address in the ftape.lsm)
Does anyone have Bas' internet address?

Please email as I've already wasted enough bandwidth here.

Thanks,
Kevin

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

From: mah@ka4ybr.com (Mark A. Horton KA4YBR)
Subject: Re: News Screwup
Date: Tue, 19 Jul 1994 08:10:27 GMT

Timothy Kulig (tim@myhost.subdomain.domain) wrote:
: Why do I keep getting tim@myhost.subdomain.domain whenever I post a
: message to a newsgroup???
: How can I make this actually say systel.com, my own host?

Assuming you are running smail,
From the file /usr/lib/smail/README.linux:

2. Set up your smail configuration file.

   a. If you are familiar with smail, proceed on your own from here.  Smail
      is ready for you.

   b. If you are not familiar with smail, a configuration script is included
      to ask you some questions and make the configuration file for you.  Do
      the following steps:

      # remember to run this as root
      cd /usr/lib/smail
      tools.linux/mkconfig

      Once you answer the questions, it will make your config file and
      you should be, at least minimally, ready to run.  You can change
      things in the future by editing /usr/lib/smail/config with the
      smail(5) man page at your side.  (There are many specialized features
      you may want to look into.)

-- Mark
--
"Linux!     Guerrilla UNIX Development     Venimus, Vidimus, Dolavimus."
============================================================
Mark A. Horton       ka4ybr             mah@ka4ybr.atl.ga.us
P.O. Box 747 Decatur GA US 30031-0747         mah@ka4ybr.com
+1.404.371.0291                     33 45 31 N / 084 16 59 W

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

Crossposted-To: comp.lang.c
From: jos@and.nl (Jos Horsmeier)
Subject: Re: Linux Performance Enhance ?
Date: Tue, 19 Jul 1994 08:14:20 GMT

In article <774545127snz@genesis.demon.co.uk> fred@genesis.demon.co.uk writes:
|In article <30b8vg$9ds@brachio.zrz.TU-Berlin.DE>
|           goldt@math.tu-berlin.de "Sven Goldt" writes:

|>Could you please discuss these C features (Duffy's Device) in
|>comp.lang.c instead ? This is going off-topic.

|Duff's device is certainly off-topic for comp.lang.c.

Not that it matter much actually, but I beg to differ here. Duff's
device is an application of a very sneaky loophole in the syntax
of the C language with very interesting semantical consequences ...
I think I like that thingie ...

kind regards,

Jos aka jos@and.nl
============================================================================
Two things are omnipresent in the universe: hydrogen and my stupidity

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

From: nash@dutllu4.gmd.de (Naresh Sharma)
Subject: Re: fact on linux vs sun
Reply-To: Naresh.Sharma@LR.TUDelft.NL
Date: Tue, 19 Jul 1994 08:12:19 GMT

Supat Faarungsang (supat@nuntana.animal.uiuc.edu) wrote:
: I test sun4.1.1 on sparcII vs linux1.1.29 on 486dx-50 and found that
: in all features linux has greater performance
: speed is about 10% faster on linux in all kind of programs.

: My friends say this should not possible and run floating point
: on sun should be much faster but I test several times
: linux always 10% faster than sun.

: Is anyone has the same experiance?

: supat

Yes, I have had the same experience.

Naresh

--
_______________________________________________________________________________
Naresh Sharma [N.Sharma@LR.TUDelft.NL]  Herenpad 28            __|__
Faculty of Aerospace Engineering        2628 AG Delft   \_______(_)_______/
T U Delft               Optimists designed the aeroplane,     !  !  !  
Ph(Work) (+31)15-783992 pessimists designed the parachute!
Ph(Home) (+31)15-569636 Plan:Design Airplanes on Linux the best OS on Earth!
==============================PGP=KEY=AVAILABLE================================

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

From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: fact on linux vs sun
Reply-To: pe1chl@rabo.nl
Date: Tue, 19 Jul 1994 09:52:43 GMT

In <30eptl$2uo@vixen.cso.uiuc.edu> supat@nuntana.animal.uiuc.edu (Supat Faarungsang) writes:

>I test sun4.1.1 on sparcII vs linux1.1.29 on 486dx-50 and found that
>in all features linux has greater performance
>speed is about 10% faster on linux in all kind of programs.

>My friends say this should not possible and run floating point
>on sun should be much faster but I test several times
>linux always 10% faster than sun.

>Is anyone has the same experiance?

Of course we do.  But you should not mention this in this group, because

1. you are preaching the choir

2. you will get the same replies ('not possible, Sun is faster') here as
   well :-)

Just enjoy your system as it is!

Rob
-- 
=========================================================================
| Rob Janssen                | AMPRnet:   rob@pe1chl.ampr.org           |
| e-mail: pe1chl@rabo.nl     | AX.25 BBS: PE1CHL@PI8UTR.#UTR.NLD.EU     |
=========================================================================

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


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

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

    Internet: Linux-Development@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-Development Digest
******************************
