Subject: Linux-Development Digest #940
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, 23 Jul 94 15:13:05 EDT

Linux-Development Digest #940, Volume #1         Sat, 23 Jul 94 15:13:05 EDT

Contents:
  WANTED: Doug Young's C++ widget component library (Generic lab login)
  Re: Linux Performance Enhance ? (Lawrence Kirby)
  Re: Xfree86: increase pallate? (Charles E Meier)
  Re: Linux Performance Enhance ? (Rob Janssen)
  Re: gcc 2.6.0 and aha152x.c error (David Kastrup)
  IDE patch won't work w/new kernels? (Timo Kokkonen)
  Re: Use of network 'select' command (Thomas Pfau)
  Re: Quotas and Accounting in Kernel? (Dave Rose)
  CD-ROM tray control (BCL)
  Re: Wanted: The Application which can read *.DBF (Mathias Homann)
  Re: Kernel Panic 1.0.9 cause: ROUTEd + route (Philip Gladstone)
  Rebuilding shared libc without pain (Philip Gladstone)
  Re: link() system call (Matthias Urlichs)
  Changing TCP/IP buffers (Douglas Warren)
  SCSI driver retrying forever (Torben Fjerdingstad)
  Re: bad email: A.Cox@swansea.ac.uk (Dominik Kubla)

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

From: lab@cwa.com (Generic lab login)
Subject: WANTED: Doug Young's C++ widget component library
Reply-To: lab@cwa.com
Date: Wed, 20 Jul 1994 16:48:04 GMT

Having read Douglas Young's book on Motif and C++, I wonder if someone
who has already created a version of the component library would be
generous enough to make it available? :-)  Please email me, as articles
expire quickly on my system.

---
Object: Anders Beitnes
Reference: alb@cwa.com
Method: Ambiguous


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

Crossposted-To: comp.lang.c
From: fred@genesis.demon.co.uk (Lawrence Kirby)
Subject: Re: Linux Performance Enhance ?
Reply-To: fred@genesis.demon.co.uk
Date: Sat, 23 Jul 1994 13:46:24 +0000

In article <30n4po$79i@gazette.esd.sgi.com>
           erik@westworld.esd.sgi.com "Erik Fortune" writes:

>Um, if you find any features of C that *can't* be implemented in machine
>code, I'm sure we'd all love to hear about it...

I'm considering Duffs device as a source code construct. Most C fearures
have no direct machine code counterpart, for loops, structs etc. have to
be simulated from lower level operations. Duff's device can be implemented
in any language with loose enough regulations of program flow control so
isn't C specific.

-- 
=========================================
Lawrence Kirby | fred@genesis.demon.co.uk
Wilts, England | 70734.126@compuserve.com
=========================================

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

From: cemeier@magnus.acs.ohio-state.edu (Charles E Meier)
Subject: Re: Xfree86: increase pallate?
Date: 23 Jul 1994 14:44:06 GMT

In article <30r07j$cvk@avocado.pc.helsinki.fi>,
Janne Sinkkonen <janne@avocado.pc.helsinki.fi> wrote:
>Eric Youngdale <ericy@cais.cais.com> wrote:
>>: XFree86[tm] 3.1 will not increase the colors available.
>>
>>      I heard that you will only get the additional colors if you are 
>>using FreeLSD or NetLSD :-).
>
>Is there such thing as FreeLSD?
>

You can get it from dead.head.disorg:/pub/Owsley/FreeLSD.  It is a very
nice Neural Network Virtual Reality OS that is, IMHO, clearly superior
to MicroGram's DOSE/Windowpane product.  :-)

But be careful. The DEA charges royalties of from 5 to 15 years depending
upon the number of neurons stimulated. If you have source code printed on 
paper it can really cost you. Its under export control too.  :-(

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

Crossposted-To: comp.lang.c
From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: Linux Performance Enhance ?
Reply-To: pe1chl@rabo.nl
Date: Wed, 20 Jul 1994 21:24:15 GMT

In <774702537snz@genesis.demon.co.uk> fred@genesis.demon.co.uk (Lawrence Kirby) writes:

>In article <Ct6HJw.GDI@and.nl> jos@and.nl "Jos Horsmeier" writes:

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

>I agree that C is one of the languages where it can be implemented but it
>isn't the only one (clearly it can be implemented in machine code so
>it isn't inherently a C language issue).

You will have a hard time finding something that *cannot* be done in
machine language, while it can be done in some other language that can
be compiled on that same machine!

Machine language doesn't count.  Find some other language for your example.

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

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

From: dak@rama.informatik.rwth-aachen.de (David Kastrup)
Subject: Re: gcc 2.6.0 and aha152x.c error
Date: 23 Jul 1994 09:21:02 GMT

mielke@omega.physik.fu-berlin.de (Bernd Mielke) writes:

>I think my last message about the errors when compiling aha152x.c is here at 
>the wrong place, a short look to gnu.gcc.bug indicates that gcc2.6.0 has 
>simply a lot of bugs, as it is usual, if one have .0 versions.

I do not think gcc is in fault here. I do not have the original post, but
I think I remember that it used an "r" constraint for a byte opcode.
However, "r" can be ESI or EDI as well, and that will not work with
a byte operand. I do not know offhand what restraint to use, but it
might have been "h" or similar.
-- 
 David Kastrup        dak@pool.informatik.rwth-aachen.de          
 Tel: +49-241-72419 Fax: +49-241-79502
 Goethestr. 20, D-52064 Aachen

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

From: tjko@tarzan.math.jyu.fi (Timo Kokkonen)
Subject: IDE patch won't work w/new kernels?
Date: 23 Jul 1994 14:04:23 GMT


IDE Performance Patch v2.0 [by Mark Lord] doesn't work with new 
WD540 drives??? Or is it just my kernel 1.1.30 that causes the problem?


Here's the drive info displayed by kernel during boot:
+-------------------------------------------------------------------+
hda:  Drive Identification Info:
 Model=WDC AC2540H, FwRev=12.08R30, SerialNo=WD-WT2610227659
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 Default c/h/s=1048/16/63, TrkSize=57600, SectSize=600, ECCbytes=4
 BuffType=DualPortCache, BuffSize=128KB, MaxMultSect=16
 Features: DblWordIO=no, IORDY=on/off, LBA=yes, DMA=yes, tPIO=medium,
tDMA=fast
 (valid): Current c/h/s=1048/16/63, TotSect=1056384, MaxLBAsect=1056384
 CurMultSect=0, DMA-1w=0001, DMA-mw=0003
+-------------------------------------------------------------------+

And here's what happens when I try to enable multi-sector mode:

technocore:/root# hdparm /dev/hda
MultModeCount=0, rc=0
unmask=0, rc=0
technocore:/root# hdparm /dev/hda 16 1
MultModeCount=16, rc=0                   <-- mode change seems to be OK..
unmask=1, rc=0
technocore:/root# hdparm /dev/hda
MultModeCount=0, rc=0                    <-- but NOT...
unmask=1, rc=0
technocore:/root# hdparm /dev/hda 16 1
MultModeCount=16, rc=-1                  <-- mode change won't work anymore
unmask=1, rc=0
technocore:/root# hdparm /dev/hda
MultModeCount=0, rc=0
unmask=1, rc=0


P.S. these IDE patches used to work in my machine with Seagate ST3390A 
drive (kernel v1.1.0) with no problems...

-- 
=======================================================111010=101101=101001===
 Timo Kokkonen, Student of Computer Science, University of Jyvaskyla, Finland
 email: tjko@math.jyu.fi, tjko@jyu.fi            URL: http://www.jyu.fi/~tjko
====================================="In space no one can hear you scream."===

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

From: pfau@cnj.digex.net (Thomas Pfau)
Subject: Re: Use of network 'select' command
Date: 23 Jul 1994 15:00:25 GMT

...In Bed (cavenewt@netcom.com) wrote:
: I'm using 'select' to tell me when socket decriptors become ready for reading
: so I don't block on a read.  [...] However, select never becomes
: ready.  I've made a tight little loop, and printed IS_SET(sock,sockfdlist)
: after the select (with a timeout set of 1 second and 1 usec), and none of
: the sockets claim to be ready after receiving data.

What are you passing in the first argument to select?  This should be the
largest socket descriptor number in use + 1.  You could also get a value
from getdtablesize() to pass in this position.

I have been working on an OSF/1 project.  We use select to poll for ready
network sockets.  The code works equally well on linux so the select code
on linux isn't broken.

--
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: drose@draco.bison.mb.ca (Dave Rose)
Subject: Re: Quotas and Accounting in Kernel?
Date: 23 Jul 1994 09:26:59 -0500

lee@netspace.students.brown.edu (Lee J. Silverman) writes:


>       Just a quickie: why is it that the code for quotas and
>accounting can't be made a standard part of the Kernel, with an option
>in the Makefile to turn it on or off?  This would be much nicer that
>creating a patch against some kernel version of Linux, only to have to
>apply several more patches to get to the current level, and dealing
>with rejects because of the quota patches.  

>       Any comments?


I couldn't agree more! I've been waiting for this forever!

-- 
==========================================================================
MBnet System Administrator      - drose@MBnet.MB.CA
Draco System Administrator      - drose@Draco.Bison.MB.CA
University Of Manitoba Student  - darose@cc.umanitoba.ca

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

From: cypress@connected.com (BCL)
Subject: CD-ROM tray control
Date: 23 Jul 1994 09:08:28 -0700

  I have just gotten my Matsushita CR-563 working with Linux and my SB16
card. There are no problems with normal operations, but I need to be able to
control the tray when there is no disk in it, and when it is already
open(ie. close it). I've looked at the sbpcd.c code and hacked it to ignore
drive open/no disk conditions, but the eject command will not close the
door, or open it with no disk.

  Can anyone help? Is there another un-implemented command to do this? I
know it can be done because the CQD.EXE program that came with it does it
under DOS. I am working on a CD-ROM Jukebox using a mechanical arm to load
my PC's tray and then close and play the cd.

  Any help or hints, comments would be appreciated!

   Thanks,
      Brian

-- 
============================================+================================
 Linux: The choice of a GNU generation      |  cypress@connected.com
 sysop  of FreeZone datahaven (206)569-2911 |  finger for PGP key
============================================+================================

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

From: lemmy@eregion.central.de (Mathias Homann)
Subject: Re: Wanted: The Application which can read *.DBF
Date: Fri, 22 Jul 1994 09:25:33 GMT

Tsai Jia-yuan (andrew@ccserv.cc.nccu.edu.tw) wrote:
: Hi,

:     I am looking for a kind of dababase software on Linux or NetBSD
: which can read the *.dbf files (the data files of Dbase) or the data
: format which Clipper supports. The most important is that I have to
: get the source code of these softwares. I am hurrying for it...

:     If you know somethings like that, please reply as soon as
: possible. Many thinks! :)

Call Borland. they sell DBase for *ix, and with Linux binary compatible with
SCO Unix, should be no Problem to run DBase. Maybe they give you the
sources...

bye,
        Mathias
-- 
Mathias Homann                          |           ||||
lemmy@eregion.central.de                |          |O  O|
root@eregion.central.de                 |----()()()--||--()()()----
Mathias Homann@2:2437/125.1 (fidonet)   |            ||

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

From: philip@charon.citicorp.com (Philip Gladstone)
Crossposted-To: comp.os.linux.help
Subject: Re: Kernel Panic 1.0.9 cause: ROUTEd + route
Date: 21 Jul 1994 14:41:48 -0400
Reply-To: Philip.Gladstone@mail.citicorp.com

Bart Kindt (bart@dunedin.es.co.nz) wrote:
: So, I wend 'back' to ROUTEd.  Started it up as: routed /var/adm/routed.log , 
: because the directory where routed tries to store its log file does not 
: exist, and it dies a horrible death if you do not give the logfile.
: So far so good, it seems to work, and the big routing list is downloaded from 
: the routing server at the university.
: To see if is is all there, I type : route -nv.   List passing by on the 
: screen.  Ok.  Now I type : cd /var/adm .  Instead, I suddenly get a login 
: prompt!  So I login again. Again, cd /var/adm . Now it works. I have a look at 
: the message file. It says:
        [bad news deleted]

This is caused by a bug in 'rt_get_info' which is used when you
opened the file /proc/net/route (the route command does this). If you
have a lot of routing entries, then rt_get_info will scribble over the
end of its buffer. The calling function allocates a page and passes
it a pointer to this page. rt_get_info then writes one line per route
into this buffer. If there happens tobe more than a page's worth, then
that is just bad luck. Something bad will probably happen.

The fix probably incolves passing over lengths to all the _get_info
functions, and checking that the size is not exceeded. This would
prevent the crashes, but would hide some of the routes. This all
requires a proper solution.

Philip
-- 
Philip Gladstone - Consultant
Citicorp Global Information Network
I don't speak for Citicorp. I presume that somebody else does!

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

From: philip@charon.citicorp.com (Philip Gladstone)
Subject: Rebuilding shared libc without pain
Date: 21 Jul 1994 14:43:57 -0400
Reply-To: Philip.Gladstone@mail.citicorp.com

Hi,
        How can I rebuild the shared version of libc without
        incurring a large amount of pain? I want to replace the
        resolver functions with some new versions. 

        Do I have to rebuild the entire library from source (which
        looks complicated) or is there some quick'n easy path?

Thanks,
        Philip

-- 
Philip Gladstone - Consultant
Citicorp Global Information Network
I don't speak for Citicorp. I presume that somebody else does!

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

From: urlichs@smurf.noris.de (Matthias Urlichs)
Subject: Re: link() system call
Date: 23 Jul 1994 18:16:17 +0200

In comp.os.linux.development, article <30oicj$uo@lyra.csx.cam.ac.uk>,
  Mitchum.DSouza@mrc-apu.cam.ac.uk (Mitchum DSouza) writes:
> In article <CtBv66.672@seneca.ix.de>, hm@seneca.ix.de (Harald Milz) writes:
> |> 
> |> I assume you mean "loopback mounts" (that's at least what they are called 
> |> under SunOS and AIX). No, I've been trying to convince several people
> |> to implement this (me not being a kernel hacker), with no success yet. 
> 
> loopback devices (with encryption) are already available with Ted Tyso's
> loop driver.
> 
That's not what Harald meant.

Loopback mounts behave exactly like a link to a directory. 
The difference to a symlink is that if you follow a symlink "pwd" prints
the path of the directory you are in and a loopback mount behaves as if
nothing interesting happened. (Just like a normal mount -- if /usr is the
root of a different file system, "cd /usr; pwd" says /usr and not
/dev/sda3.)

We already have something like that; it's called "ifs" (which forgets
inodes, more exactly: somewhere inside, iput() should be called but isn't).
Userfs should also be convincable to do so something like this.

I don't know if SunOS or AIX allow "real" loopback mounts, i.e. mount
/a/b onto /a/b/c/d/e. This would mean that programs like du or find
wouldn't terminate any more. Ugh.
Anyway, the only advantage of a loopback mount over symlinks is a nice
working directory path, and I admit that I can live without that feature.

-- 
"The next morning our youth was a memory, and our happiness was a lie.  Life
 is like a bad margarita with good tequila, I thought as I poured some whiskey
 onto my granola and faced a new day."
        -- Peter Applebome
-- 
Matthias Urlichs        \ XLink-POP N|rnberg  | EMail: urlichs@smurf.noris.de
Schleiermacherstra_e 12  \  Unix+Linux+Mac    | Phone: ...please use email.
90491 N|rnberg (Germany)  \   Consulting+Networking+Programming+etc'ing     42

Click <A HREF="http://smurf.noris.de/~urlichs/finger">here</A>.

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

From: dwarren@alpha.netusa.net (Douglas Warren)
Subject: Changing TCP/IP buffers
Date: 23 Jul 1994 12:54:19 -0400

I'm getting a lot of EWOULDBLOCK errors on a write with one of my applications,
and would like to expand the size of the sending buffer.  The only functions I
see to do so seems to be sock_setsockopt(); but thats only internal to the code.
How would I a) Change the default buffer size?  B) Change the buffer size on
one specific socket?

Thanks a lot!

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

From: tfj@olivia.ping.dk (Torben Fjerdingstad)
Subject: SCSI driver retrying forever
Date: 22 Jul 1994 10:13:36 +0200

My good old scsi disk has suddenly got some bad blocks. After low-level
formatting it with adaptec's eztape formatter, it works fine after 1 hour
warm-up.

Until then, if it hits an error, the driver retries forever on the same
spot until success. Today it tried for more than fifteen minutes on
some of the bad blocks, and then continued.

Also I tried to scan the whole disk with a kind of 'dd', a friend of
mine wrote, which can show a progress report.

It has been retrying some spots for up to 15 minutes, and came
through without printing any errors in about 70 minutes.

I can't suggest a much better behaviour, but shouldn't I be able to
access the disk while another program is retrying on a bad spot?
I am not. The system is real hung, until reading of the bad block
succeeds.

There are absolutely no messages about soft errors are to be
seen anywhere. I have chosen "Verbose scsi error reporting" when
I built the kernel. The kernel is 1.1.33, but old kernels do the
same.

Where do I define -DDEBUG for the scsi driver alone?

Do anyone know about a low-level formatting program that does a
exhausting test and remaps *all* suspect sectors?

Disk: Maxtor 8760S, 630Mb.
Cont: AHA-1542B

-- 
torben fjerdingstad                     | linux-1.1.32     (God's Own OS).
tfj@olivia.ping.dk  /  234/85@fidonet   |

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

From: kubla@goofy.zdv.Uni-Mainz.DE (Dominik Kubla)
Subject: Re: bad email: A.Cox@swansea.ac.uk
Date: 23 Jul 1994 17:01:18 GMT

In article <30p03k$hjn@zeus.fasttax.com> phil@zeus.fasttax.com (Phil Howard) writes:

   Sorry for this being posted here, but it is obviously the only
   choice when one is sent a bad email address on a reply (which
   was to a posting here).  Please try replying again with a better
   email address.  Thanks.

It may not be known by many but there is a linux.org domain which provides
mail aliases for developers. If you want to reach Alan Cox, try:

   Alan.Cox@linux.org

Cheers,
  Dominik
--
+-------------------------------------------------------------------------+
| eMail: Dominik.Kubla@Uni-Mainz.DE                                       |
| sMail: Dominik Kubla, Lannerstra"se 53, 55270 Ober-Olm, F.R. of Germany |
+-------------------------------------------------------------------------+

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


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