Subject: Linux-Development Digest #922
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:     Sat, 16 Jul 94 19:13:05 EDT

Linux-Development Digest #922, Volume #1         Sat, 16 Jul 94 19:13:05 EDT

Contents:
  Re: Linux 1.1.29: telnet shells dying??? (SNYDER@d0sb10.fnal.gov)
  Re: [Q] Soundblaster + Adaptec SCSI -> NOGO! Why? (kevin.ray@kray.com)
  Re: system("ls") doesn't display anything to screen? (Robert Adams)
  Re: Starting New DIP (Case)
  Re: Returning free'd memory (Kent A Vander Velden)
  Need Help Porting UPS software to Linux (Stephen Beaton-Snook)
  Multi-session (Photo-CD) support. (Eric Youngdale)
  Update on v.35 board driver development (Pete Kruckenberg)
  Re: 1.1.28: SCSI (Matthias Hanisch)
  Problems with Tass and geteuid() (Stephen White)
  Re: Linux Performance Enhance ? (Stephen White)
  Re: How to know the patch lev (David Dyer-Bennet)
  Question with regard to sound and cd-rom.... (William Chen,MB102,9093)
  Re: Help needed compiling the kernel with c++ options (Tim Mcarthey)
  Re: How to know the patch lev (Jinwoo Shin)
  Re: ncr_slack.3 error? (Patrick J. Volkerding)
  Seeking informations on the following PC/AT Board (Damiano Bolla)
  Re: PORT TO ATARI (Richard Hodson)
  VECTREX / linux /Xfree (John L Menssen)
  PORT TO ATARI (Scott Gruber)
  Re: Linux 1.1.29: telnet shells dying??? (Pete Davis)
  Re: Linux Performance Enhance ? (Remco Treffkorn)
  Re: Linux 1.1.29: telnet shells dying??? [FIX] (Matt Day)

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

From: SNYDER@d0sb10.fnal.gov
Subject: Re: Linux 1.1.29: telnet shells dying???
Date: 15 Jul 1994 20:11:06 GMT

In article <boutellCszn3B.82r@netcom.com> boutell@netcom.com (Thomas Boutell) writes:
> The bad news is, net connections seem to be fine for a couple of minutes
> and then hang without warning (under SLIP). I can then make another
> connection to the same remote host.

I've seen the same problem with 1.1.28:
telnet connections over SLIP hang after a while.
The remote connection remains in place.

sss

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

From: kevray@MCS.COM (kevin.ray@kray.com)
Subject: Re: [Q] Soundblaster + Adaptec SCSI -> NOGO! Why?
Date: 15 Jul 1994 14:19:12 -0500

fg@spcklr.mpifr-bonn.mpg.de (Frank Grieger) writes:


>Hello developers,

>I'm just curious why soundblaster cards don't work together with aha... cards
>in the same Linux PC. Would someone be so kind to enlight a poor soul?

Which Soundblaster and adaptec? I have the SB16 and Adaptec 1542b
working very nicely together... Read BOTH manuals and set them up
properly first... I remember that the aha was using i/o address
0x330, DMA 5, IRQ 11. The address and DMA conflicted with the SB card
initially... I had to install (for real, not dosemu!) DOS and
reconfigure the SB card since it did NOT have jumpers to change the
memory and/or DMA channel (I forget now -- been a while... :-). Right
now I have the aha at the above and the SB set to work at memory
0x220, irq 5, drq 1 and 6 (pro 4.11 at 1, 16 at 6) and the MPU-401 at
0x300 (NOT 0x330), irq 5, etc... Just watch the memory, irq, and dma
settings...

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

From: robert@oblique.ksmith.com (Robert Adams)
Subject: Re: system("ls") doesn't display anything to screen?
Date: Fri, 15 Jul 1994 02:11:47 GMT

Tim Smith (tcsmith@csi.nb.ca) wrote:
: Hello

: Why doesn't system("ls") display anything to the screen. This is the case for
: both c and perl.

        I just tried it out in c, and it did work for me...
the exact code in test.c is:

main() { system("ls"); }


it worked fine maybe it's something else in your program that is killing it.


Robert.
-- 
Robert J. Adams                                         Oblique Enterprises 
robert@oblique.ksmith.com                      who wants dos? windoze? os/2 
adamsr@hamlet.uncg.edu                                   when one has UNIX? 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

From: case@newstand.syr.edu (Case)
Subject: Re: Starting New DIP
Date: 16 Jul 1994 12:13:59 -0400

Paul Cadach (paul@paul.east.alma-ata.su) wrote:
: I did make some changes in dip-3.3.7 for auto-redialing when carrier is
: dropped. It very simple: I checking for zero return of 'read' function in
: tty_getc procedure. The kernel changing tty-function's table when modem
: switching CD from high to low (drop carrier), and the 'read' function in
: 'hangupped' table will always return 'zero'.

: If it interested for somebody I can put sources of dip-3.3.7 with my
: changes on mailserv@east.alma-ata.su.

        Id be interested in seeing these changes to DIP. Why not put a 
diff on sunsite.unc.edu /pub/Linux/Incoming, or mail me a copy?
        Thanks 

-- 
=====Straylight=====           _                ========================
The Sun don't Shine      _-_  < \,  _-_,  _-_   bcsaller@mailbox.syr.edu
on this part of the     ||    /-|| ||_.  || \\  SYS ADMIN:Straylight
Matrix.                 ||   (( ||  ~ || ||/    Running Linux 1.1.29
---Support Linux---     \\,/  \/\\ ,-_-  \\,/   ---  Debian 0.93  ------

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

From: graphix@iastate.edu (Kent A Vander Velden)
Subject: Re: Returning free'd memory
Date: 15 Jul 94 05:34:22 GMT

In <1994Jul15.025533.8154@unlv.edu> ftlofaro@unlv.edu (Frank Lofaro) writes:

>       I'd hate such a good idea quashed due to backwards
>compatibility concerns.  Allowing user processes to give up regions to
>the MM ppol would be great in quashing monster X servers and kernel
>"Out of memory!" errors due to inability to deallocate memory due to
>the limitations of brk()/sbrk().

Exactly!  Any program that does allocation and free'ing of memory could
be greatly benefited by such a mechanism as the one being suggested.

Kent Vander Velden




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

From: steve1@morgan.ucs.mun.ca (Stephen Beaton-Snook)
Subject: Need Help Porting UPS software to Linux
Date: 16 Jul 1994 16:26:38 GMT

I am trying to port some (APC SmartUPS 600) software 
(written for ISC useing the FAS 2.08 driver).


The UPS (APC SmartUPS 600) is hooked to my serial port with the recomended cable

The UPS sends a high signal to RX (pin 3 on the 9 pin serial connector) on 
the serial port when the power fails. And Ive used a multimeter to verify this.

the program does basically this. 

while(1) {
int ups_fd;
char c;
char *ups_port = "/dev/ttyS1";  /* or should I use /dev/cua1 ? */

       /* Ive tried useing open(ups_port, O_RDWR | O_NDELAY)
          O_NDELAY = O_NONBLOCK
          as suggested by a friend of mine
       */

         if((ups_fd = open(ups_port, O_RDWR)) == ERR) {
            exit(1);
            }

         if (read(ups_fd, &c, 1) != ERR) {
            printf("Power Failed");
            }

         sleep(5);
}

It seems that read will wait forever to see if a character arrives if
I dont use O_NDELAY. when I do use O_NDELAY errno is set to EAGAIN
which is correct. However .. nothing changes when my UPS's power does fail
even though the high signal is sent. Can read see this high signal? or
do I have to to mess with tcsetattr() ?


Any help or suggestions would be much appreciated



--

 Stephen Beaton-Snook                             Memorial University of NFLD
 steve1@morgan.ucs.mun.ca                         St John's, Newfoundland
                                                  Canada.


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

From: ericy@cais.cais.com (Eric Youngdale)
Subject: Multi-session (Photo-CD) support.
Date: 16 Jul 1994 16:31:57 GMT

        I caught the tail end of a thread about Photo-CD and 
multi-session support.  It has been on my todo list to add support for this,
but the priority is fairly low for me since I have other things I should 
do first.  I did not catch whether someone has already come up with 
patches to support this - if so, could someone direct me to them.

        If no one has come up with patches yet, this would be a good 
project for someone who is just dying to try their hand at kernel 
programming.  It should be relatively easy, and I can provide some 
insights as to the various things you will need to do to protect system 
integrity.  

-Eric

-- 
"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

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

From: kruckenb@sal.cs.utah.edu (Pete Kruckenberg)
Subject: Update on v.35 board driver development
Date: 14 Jul 1994 16:23:32 GMT

Just wanted to give you all an update on my quest to get a v.35 board
for Linux. I talked to Dale Dhillon of SDL (sdl@world.std.com) a few
days ago and they have begun development of a Linux driver for their
recently-released N2 v.35-compatible board. This dual-port board runs
on an ISA bus and supports multiple protocols at speeds up to 12Mbps.

For information on the board, you can ftp to ftp.std.com and look in
the directory pub/sdl/n2. Or, contact them at sdl@world.std.com.
They're anticipating that the driver will be in beta status within a
month.

A short definition of v.35: The v.35 protocol is a "super-serial"
protocol that allows very high-speed serial data rates. It is commonly
used as the input/output of DSU/CSU's from 56kb or higher-bandwith
connections.

I will keep you all posted on this. Look for an announcement in
c.o.l.announce in a few weeks, hopefully!

Pete Kruckenberg
kruckenb@sal.cs.utah.edu

-- 
  ------------------------------------------------------------------------
  Pete Kruckenberg                       School: kruckenb@sal.cs.utah.edu
  University of Utah                       Work: pete@dswi.com
  Computer Engineering    For even more addresses, "finger pete@dswi.com"

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

From: hanisch@cip.informatik.uni-wuerzburg.de (Matthias Hanisch)
Subject: Re: 1.1.28: SCSI
Date: 14 Jul 1994 17:46:29 GMT

Heinz Kranefeld (pthk@ptb1.pt.tu-clausthal.de) wrote:
: Hi guys,
: with the kernel 1.1.28 i got funny partition tables from my
: SCSI disks.
: The disks are:
:    Fujitsu M2624-512      sda
:    DEC     DSP3105-S      sdb
:    IBM     OEM 0664M1H    sdc
: Controler: Adaptec 1542
: A DOS partion is on sda1. fdisk shows wrong block counts and during
: boot up i got the message:
:    VFS: Can't find a valid MSDOS filesystem on 0x0803
: The second disk is o.k. i think (hope). From the third disk fdisk only
: shows the first three partitions (no logical partition of the extended
: partition is shown).
: If i boot another kernel (1.1.27) all things are correct with the disks. 
: Thanks for your time
: Heinz

get 1.1.29
        Matze

--
Matthias Hanisch    hanisch@cip.informatik.uni-wuerzburg.de    +49 931 613151

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

From: steve@adam.com.au (Stephen White)
Subject: Problems with Tass and geteuid()
Date: 14 Jul 1994 16:21:44 -0000

I'm trying to get Tass (a newsreader) to run on Linux.

It works fine as a normal binary, but as soon as I setuid it to "news" 
(so it will have a global index in /var/spool/news), it buggers up.

It appears that it is unable to swap between real UID and the setuid. 
Tass relies on this to swap between writing to the user's directory and 
the spool directory.

I remember various bitching about geteuid() before, so it seems to be a 
common complaint. Has a fix to this been devised yet?


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

From: steve@adam.com.au (Stephen White)
Subject: Re: Linux Performance Enhance ?
Date: 14 Jul 1994 16:33:29 -0000

Rob Janssen (rob@pe1chl.ampr.org) wrote:
: Ok ok...  I admit that my piece of code was not the same as the original.
: So here is a re-try.  It uses no goto at all, generates the same or better
: code as Matthias's version, and it also uses a feature of the C language
: that is not well-known...

Matthias posted a worthwhile improvement (it may be Duff's Device, but it
was worse before).  I cringed when I read your line "let me teach you 
about progamming". It hasn't gotten any better since.

I prefer clear and simple code. The version with goto was much clearer, 
as well as being less likely to provoke compiler bugs. How about leaving 
it at that?


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

From: ddb@terrabit.mn.org (David Dyer-Bennet)
Subject: Re: How to know the patch lev
Date: Sat, 16 Jul 1994 16:49:12 GMT

riku.saikkonen@compart.fi (Riku Saikkonen) writes:

>>I want to know what patch level of 1.0 I am running. I tried "uname"
>>it only tels me it is "1.0".

>It's 1.0.0 then...

When I type "uname" on my system, it just says "Linux".
-- 
David Dyer-Bennet, proprietor, The Terraboard    4242 Minnehaha Ave. S.
ddb@network.com, ddb@terrabit.mn.org              Minneapolis, MN 55406
Don't waste your time arguing about allocating          +1-612-721-8800
blame; there'll be enough to go around.             Fax +1-612-724-3314

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

From: wchen@scripps.edu (William Chen,MB102,9093)
Subject: Question with regard to sound and cd-rom....
Date: 15 Jul 1994 20:05:40 GMT
Reply-To: wchen@scripps.edu

        I have been looking around for some info on these questions, but couldn't find
any, so I hope somebody can help me here:

        1. What sound cards are supported in Linux Slackware 2.0?
           Specifically, are SB16, SB32AWE supported?  8 bit or 16 bit support?

        2. Is there any audio tool in linux environment such that one may play 
           CD music using the CD-ROM drive?  In my case, the CD-ROM drive is 
           a Toshiba 3401B.

        3. Will OpenGL be ported into Linux, or is it not possible?

Thanks for the help and info.
wchen@mirp.scripps.edu



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

From: quadron@netcom.com (Tim Mcarthey)
Subject: Re: Help needed compiling the kernel with c++ options
Date: Thu, 14 Jul 1994 20:11:47 GMT

Mr DV Watkins (damien@monu1.cc.monash.edu.au) wrote:
: Can anyone help with compiling the linux kernel?

: I wish to compile the kernel after modifying some of the source files 
: using c++ extensions. 

: I have a version of linux (version 1.0.8) which compiles fine as is.

1.- Wrap all C declarations and C header files with 
   extern "C" { }

2.- Revise your C++ code, it seems you are trying to do illegal type
conversions ( if you *really* need them use casts ). 

3.- if you still have problems with your C++ code post the relevant
sections in comp.lang.c++.

4.- if you are interested in cross-platform programming with C++ read my
article in ftp.netcom.com/pub/vorl/xplat.gz.   :)

Best regards,
      Omar Loggiodice  ( ologgio@netcom.com )

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

From: jwshin@nitride.EECS.Berkeley.EDU (Jinwoo Shin)
Subject: Re: How to know the patch lev
Date: 16 Jul 94 19:51:30 GMT

ddb@terrabit.mn.org (David Dyer-Bennet) writes:

>When I type "uname" on my system, it just says "Linux".

Try uname -a
-- 
Jinwoo Shin                             jwshin@eecs.berkeley.edu
System Administrator                    
Berkeley Sensor and Actuator Center

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

From: gonzo@magnet.mednet.net (Patrick J. Volkerding)
Subject: Re: ncr_slack.3 error?
Date: 14 Jul 1994 18:16:00 GMT

In article <POKQBACM@isys-hh.Hanse.DE>,
Kai Siemonsen <spiff@isys-hh.Hanse.DE> wrote:
>I've experienced some strange behavior with the Slackware boot disk for
>the PCI NCR 53c810 controller gunzipped from ncr_slack.3.gz.
>The disk does not install a ramdisk, so that I can't install from
>floppy drive, since I have only one disk drive and Linux can't unmount
>the root disk to start installing the a series.

Try the "ncr" disk on ftp.cdrom.com in /pub/linux/slackware/bootdsks.144 
or bootdsks.12 instead. It was just added recently, shortly after version 
3 of the NCR driver was released.

There are also ncr1 and ncr2 disks that will install a kernel image and 
source with the NCR drivers.

Have fun! :^)

Pat

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

From: damiano@dei.unipd.it (Damiano Bolla)
Crossposted-To: comp.os.linux.misc,comp.sys.ibm.pc.soundcard,comp.sys.ibm.hardware
Subject: Seeking informations on the following PC/AT Board
Date: 15 Jul 1994 21:38:13 +0200


I am looking for information on the following hardware product.

Made By: Dialogic Corp. 1992
Ident  : ASS Y 85 0091 009 
Rev    : A

It is a 8 bit ISA board for an IBM PC/AT that is used to implement
a 4 lines automatic answering machine. It handles sampling and plaing
of digital voice plus the recognition of touch tones.

I will be doing a device driver for this board for Linux if I find
information on the hardware registers and what to do to operate it.

Any information is welcomed.

Thanks !

Damiano



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

From: richard@radar.demon.co.uk (Richard Hodson)
Subject: Re: PORT TO ATARI
Date: Sat, 16 Jul 1994 15:50:41 +0000

Scott Gruber (gruber@austin.ibm.com) wrote:

: Just wondering how the port to the Atari ST/TT is going ?

Well enough that there is now a newsgroup maus.os.linux68k for
discussing it (mostly in German, with very little English).  You need a
Falcon or TT to run it, and an FPU. Still lots of work to do on it, eg
it crashes on my system because it does not like my hard drive!!

Source & binaries are on tsx-11 for ftp.

--
Richard Hodson                          |  richard@radar.demon.co.uk
:1,$s/DOS/anal secretion from hell/g    |  rhodson@cix.compulink.co.uk

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

From: mens0011@gold.tc.umn.edu (John L Menssen)
Subject: VECTREX / linux /Xfree
Date: Thu, 14 Jul 1994 20:43:05 GMT



        I am curious to see how many people would be intrested in a
VECTREX (vector based game system form the 80 now all pd) port to 
Linux/Xfree. Leave mail if so interested. 

Games include Scrable (sideways ship games)
Asteroids (great port)
Others about 20 more games.

thanks again


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

From: gruber@austin.ibm.com (Scott Gruber)
Subject: PORT TO ATARI
Date: Thu, 14 Jul 1994 17:48:59 GMT


Just wondering how the port to the Atari ST/TT is going ?

Thanks,
        Scott                   


Disclaimer : The views of the poster are not necessarily that of IBM

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

From: pete@max.tiac.net (Pete Davis)
Subject: Re: Linux 1.1.29: telnet shells dying???
Date: 16 Jul 1994 22:08:33 GMT

Thomas Boutell (boutell@netcom.com) wrote:

: The bad news is, net connections seem to be fine for a couple of minutes
: and then hang without warning (under SLIP). I can then make another
: connection to the same remote host.

: be them, but that seems odd since they're still up and I can connect
: again. Is anyone else experiencing this?

Hi Thomas,

I have noticed this same problem in Linux 1.1.28 and 1.1.29 using both
telnet and rlogin over a slip connection.  Active connections randomly
die and then if i kill -9 the rlogin i can do it right back again.

This never happened in 1.1.27

-Pete Davis
TIAC
--

=========================================================================
    Peter Davis - Technical Support and Administration <pete@tiac.net>
        The Internet Access Company  7 Railroad Avenue  Bedford MA
          Voice:617-275-2221  Data:617-275-0331 Fax:617-275-2224
=========================================================================

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

From: remco@emc.rvt.com (Remco Treffkorn)
Subject: Re: Linux Performance Enhance ?
Date: Fri, 15 Jul 1994 06:50:23 GMT
Reply-To: remco@emc.rvt.com

Rob Janssen (rob@pe1chl.ampr.org) wrote:
: It seems that most people think that case labels are only allowed in the
: first block beneath the switch statement.

I think most people did not even *think* about it! Nor should they!

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.

Sure, this is only my opinion, and I respect anybody elses ;-)

So, I was quite happy with the original, but then maybe I have lost too
many brain cells already to appreciate the beauty of Rob's solution :-)

But now this thread has reached a level of nerdieness that catapults
it straight into one of the alt.mine.is.better groups %-)

Remco
-- 

Remco Treffkorn, DC2XT
remco@emc.rvt.com
(408) 685-1201

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

From: mday@park.uvsc.edu (Matt Day)
Subject: Re: Linux 1.1.29: telnet shells dying??? [FIX]
Date: Fri, 15 Jul 1994 20:00:23 GMT

In article <306hbj$le2@bmerha64.bnr.ca> mlord@bnr.ca (Mark Lord) writes:
>In article <boutellCszn3B.82r@netcom.com> boutell@netcom.com writes:
>..
>>The bad news is, net connections seem to be fine for a couple of minutes
>>and then hang without warning (under SLIP). I can then make another
>>connection to the same remote host.
>..
>>Is anyone else experiencing this?
>
>I had it happen after 15 minutes use (PPP) today with 1.1.29.

I've seen this as well.  The problem is in the TCP_FASTPATH code in
net/inet/tcp.c, which was enabled in 1.1.28.  Disable the code with
this patch and the problem will go away:

*** net/inet/tcp.c-     Fri Jul 15 12:51:32 1994
--- net/inet/tcp.c      Fri Jul 15 12:51:02 1994
***************
*** 155,161 ****
  #include <asm/segment.h>
  #include <linux/mm.h>
  
! #define TCP_FASTPATH
  
  #define SEQ_TICK 3
  unsigned long seq_offset;
--- 155,161 ----
  #include <asm/segment.h>
  #include <linux/mm.h>
  
! #undef TCP_FASTPATH
  
  #define SEQ_TICK 3
  unsigned long seq_offset;

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


** 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
******************************
