Subject: Linux-Development Digest #952
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:     Wed, 27 Jul 94 12:13:08 EDT

Linux-Development Digest #952, Volume #1         Wed, 27 Jul 94 12:13:08 EDT

Contents:
  VGA256: Cannot read colourmap from VGA .. (Venant Habiyambere)
  Re: Found "talk" bug, fixing. (Barry Yip kam-wa)
  SCSI for Dell (Pedro Lopez)
  Re: Stacker driver? (guy keren)
  1.1.36 breaks compilation of iBCS2 (Harald Milz)
  Re: Quotas and Accounting in Kernel? (Bart Kindt)
  Re: Voice Mail cards. (Frank Lofaro)
  Re: Starting New DIP ((unknown))
  Re: Project: Wine or SCSI-PCI (Michael Veksler)
  Re: help with garbled sockets: linux<->sun,hp--fine with alpha (Rob Janssen)
  BOOTP Problems (Leonard N. Zubkoff)
  Re: Quotas and Accounting in Kernel? (David A. Ranch)
  Re: what's this stuff? (pI[ITE PO-RU ...) (Robert Sanders)
  Re: GOTO haters ..Re: Linux Performance Enhance ? (Wolfgang Schelongowski)
  Re: New kernel message at boot time? (David Holland)
  1.1.36 make problem: 'NULL' undeclared (Chris Origer)

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

From: habi@bauv.unibw-muenchen.de (Venant Habiyambere)
Crossposted-To: comp.os.linux.help,comp.os.linux.admin
Subject: VGA256: Cannot read colourmap from VGA ..
Date: 27 Jul 94 10:06:49 GMT


hallo,


I have :
System Linux 1.0 ,Xfree86-2.1 
videocard   TSENG ET 4000
driver      VGA256 (8-bit colour SVGA)
video     Nec MultiSync 6FG

whenn i switch back from Xwindows to console, i got this message:
VGA256: Cannot read colourmap from VGA. Will restore with default.

And whenn i switch back from console to XWindows my Xserver
is corrupted. It seems there are no colors.

Any suggestions?

==============================================================

Venant Habiyambere
University of the Federal Armed Forces Munich, Germany

habi@bauv.unibw-muenchen.de 


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

From: g609296@win.or.jp (Barry Yip kam-wa)
Subject: Re: Found "talk" bug, fixing.
Date: 27 Jul 94 09:38:06 GMT

Doug DeJulio (ddj@zardoz.elbows.org) wrote:

>The original talk got the local address by doing a gethostbyname on
>the hostname.  This does not work for people with multiple interfaces
>with different addresses -- talk would only work over the interface
>that matched the address of your hostname.  The "talk.FvK" patch makes
>a quick connect to the remote host and tries to grab the address of
>the interface the connection was made through directly from the
>socket, via getsockname().

This bugged me for a while too. I have a machine connected to internet
through leased line ppp and also connected to our local network so
there are two interfaces namely ppp0 and eth0. Whenever I use talk on
the machine it I got the same problem as Doug mentioned above. However
if you define a ppp route explicitly in your routing table this can be
solved. For example,

route add -host 202.38.49.1 dev ppp0

Suppose the above address is currently used by your ppp interface. This
has to do so because when the machine will try to send the packet
through eth0 if the above route doesn't exist. It will cause problem
because there is not machine on the ethernet with that ip address.

I hope the above is correct because I don't use it for a while. Right
now I just remove the ip entry in the hosts file and DNS zone file so
that no program other than ifconfig and route knows it. Please remember
all reference to the external world should use another address in this
case.

I am not a unix guru and the above explanation may not correct but
worked fine for me so far. I will be regard if anyone can provide a
correct solution if any.

--
Barry Yip
g609296@win.or.jp

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

From: pplp@gmv.es (Pedro Lopez)
Subject: SCSI for Dell
Date: Tue, 26 Jul 1994 16:43:28 GMT


Hello,

I'm trying to install Linux on a Dell 4066/XE and I've ran into an SCSI
problem.  The SCSI driver is a DSA (Dell SCSI Array) and there seems not
to be such a driver in Linux. Is anybody developing one? or has any body
heard about this problem before?

Thanks,

Javier Romanyach
jromanac@b008.eunet.es

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

From: choo@actcom.co.il (guy keren)
Subject: Re: Stacker driver?
Date: Mon, 25 Jul 1994 18:33:49 GMT

Janne Kukonlehto (jtklehto@stekt.oulu.fi) wrote:
: H.C.W. Kwok (cwhk@ic.ac.uk) wrote:
: > Just wounder whether it is possible to write a fs driver for
: > a stacked drive.

: I have an idea about this.

: Dosemu can use Linux filesystems (by using emufs.sys-driver) and
: Stacker works under dosemu. It should therefore be possible to make
: Linux to be able to use dosemu filesystems including stacked drives.

: It could be as simple as a little program which runs under dosemu and
: copies files when requested from stacked drive to Linux filesystem and
: deletes them when no longer used. It only needs to made really
: transparent.


: --
: Janne Kukonlehto*jtklehto@stekt.oulu.fi*http://stekt.oulu.fi/~jtklehto

hmm, which dosemu version runs which stacker version?
i've been trying stacker 3.0 under dosemu 0.49 something, to no avail.
and btw, it seems stacker 4.0 now loads the same as double-disk
from microsoft does. i.e. it sits in the partition table, not
in the config.sys any more (i.e. it loads before msdos itself does).

anyone could give out some informatin on that?
thanks,
guy keren
  choo@actcom.co.il

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

From: hm@seneca.ix.de (Harald Milz)
Subject: 1.1.36 breaks compilation of iBCS2
Date: Wed, 27 Jul 1994 06:11:55 GMT
Reply-To: hm@seneca.ix.de

Due to changes in the process table, ibcs-950623 doesn't compile any longer. 
Compilation breaks at line 573 of ibcs/binfmt_coff.c: 

            current->executable  = bprm->inode; /* Store inode for file  */

The part of patch36 which caused this is

--- v1.1.35/linux/include/linux/sched.h Mon Jul 25 17:56:43 1994
+++ linux/include/linux/sched.h Tue Jul 26 11:56:31 1994
@@ -289,7 +289,7 @@
 /* file system info */
        int link_count;
        struct tty_struct *tty; /* NULL if no tty */
-       struct inode * executable;
+/* shm stuff */
        struct shm_desc *shm;
        struct sem_undo *semun;
 /* ldt for this task - used by Wine.  If NULL, default_ldt is used */


-- 
Harald Milz                             office: hm@ix.de
iX Multiuser Multitasking Magazine      home:   hm@seneca.ix.de
Opinions are mine, not my employer's -- the answer is Forty-two
PS: I apologize for my bad return address - I hope this will be fixed soon.

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

From: bart@dunedin.es.co.nz (Bart Kindt)
Subject: Re: Quotas and Accounting in Kernel?
Date: Tue, 26 Jul 1994 04:46:51 GMT

In article <JUHA.VIRTANEN.94Jul24004156@gamma.hut.fi> Juha.Virtanen@hut.fi (Juha Virtanen) writes:
>From: Juha.Virtanen@hut.fi (Juha Virtanen)
>Subject: Re: Quotas and Accounting in Kernel?
>Date: 23 Jul 1994 21:41:56 GMT

>>>>>> On 23 Jul 1994 12:08:14 -0700, toman@darkwing.uoregon.edu
>(Joseph Toman) said: 
>:> Quotas + accounting *should* definitively be a part of the standard
>:> kernel!!!

Yes! Yes! Me to!


=================================================
Bart Kindt (ZL4FOX/PA2FOX), Dunedin, New Zealand.
=================================================

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

From: ftlofaro@unlv.edu (Frank Lofaro)
Subject: Re: Voice Mail cards.
Date: Wed, 27 Jul 94 08:02:25 GMT

In article <314hmv$4in@pbaron.connected.com> baron@pbaron.connected.com (Joe Portman) writes:
>In article <MATT.94Jul25100233@eve.albany.edu>,
>Matt Womer <matt@csc.albany.edu> wrote:
>>My original question was not clear enough, I wish to buy a voice mail card
>>that answers the phone and can store and retrieve messages stored on the
>>computer.
>
>Well. I do know that Dialogic D41/B and D41/D cards can be used under Linux.
>I am currently porting the Westin Voice Mail system to run under Linux and that
>included making a driver for the cards. I am not allowed to release the source
>for the driver, but I may release a binary driver module with an API sometime
>in the future. And yes, I have permission from Linus to do so.
>
>
>As far as I know, no voice mail vendor is going to allow source code to be
>released, or programming details of their cards to be made public. Sorry,
>but they have big dollars invested in this stuff, and it is their decision.
>
>

And it is our decision if we want to (and do) reverse-engineer anything.

And then release source code ourselves. We would not be under
non-disclosure.

I sure hope they would not be allowed to prohibit reverse-engineering.
If they can do that, for a Linux loadable module, it would be a
stinging blow to the whole idea of free software. It would be inimical
to the very concept. The legal integrity of the kernel would be
severely compromised. I am already somewhat uncomfortable with binary
only modules, but I can live with it. However, having a part of linux
(even a detached part such as a module) where one would be prohibited
from trying to reverse-engineer it really makes me uncomfortable.

A good part of the value of Linux is that it is NOT a black box.
Having a legally enforced shroud around kernel parts is NOT GOOD.

It could really sting us if the Linux license (GPL) is ever
challenged.  Allowing the prohibition of reverse-engineering would put
us on very thin ice, IMHO. Binary-only modules may be risky, but this
would be much more so.

What is the status of reverse-engineering of the driver when it is
released? _IF_ it will be illegal, perhaps we ought to rethink our
direction and agenda, and people might rethink contributing to the
kernel.

Not a flame, just very concerned. I _*LOVE*_ Linux, I would _NOT_ want
it to be undermined and destroyed. The fact it is under the GPL, may
indicate I am not alone in this worry.  (please no GPL vs BSD
flamewar, we have had that one a zillion times)


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

From: me@myhost.subdomain.domain ((unknown))
Subject: Re: Starting New DIP
Date: 27 Jul 1994 08:30:58 GMT

Bill Hay (wish@dumain.demon.co.uk) wrote:
: 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.

: I'd be very interested in your changes.

Me too.  Would your changes work for a dynamic ip, too?  How would one get
them from  mailserv@east.alma-ata.su ?

                                -me


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

From: s1678223@techst02.technion.ac.il (Michael Veksler)
Subject: Re: Project: Wine or SCSI-PCI
Date: Mon, 25 Jul 1994 09:00:55 GMT

: I am going to do a project under Linux for my B.Sc. degree.
: I am thinking of two options:

:   1. Write SCSI-PCI driver for Linux
:   2. Enhance "Wine" (windows emulator).

Thanks for the responses I got, I decided doing Wine for the following
reasons:

1. SCSI-PCI driver is being written this moment
2. When I'll start my project the driver will be probably finished
3. Wine is a common need, while SCSI-PCI is needed by few.
4. I'll put hebrew support in it, I don't think that anyone else will
   do it (most of the writers don't care for hebrew)
5. MS-windows is not well documented - seems to be a challenge.
6. I hate Microsoft software - I find bugs wherever I go (especially
   hebrew support),  I'd like to contribute to the competition
   with Microsoft (maybe they will improve - who knows?).

Michael

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

From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: help with garbled sockets: linux<->sun,hp--fine with alpha
Reply-To: pe1chl@rabo.nl
Date: Wed, 27 Jul 1994 06:41:59 GMT

In <313oog$kht@constellation.ecn.uoknor.edu> parprods@hellcat.ecn.uoknor.edu (Dorwin Shields) writes:



>   could anyone  help me figure out why my sockets don't seem to work
>when I send data to sun's and hp's--they work fine between linux boxes
>and when a linux box talks to an alpha--but suns and hp's won't
>work--I never get an error during the write and read calls but the data
>is useless--I'm doing things like
>  read(sockfd,&cmd,sizeof(int));
>  write(sockfd,&cmd,sizeof(int));
>  if I try to pass 1 through (cmd=1, then send as above) I get something
>like 16777216 on the sun end--thereafter, whenever I try to read from the 
>linux end I seem to get that number there too--any suggestions --
>I also use reads and writes like:
>  read(sockfd,&xinc,sizeof(double));
>  and read(sockfd,&colors[0],nx*sizeof(double));

You have just found out the difference between big-endian and little-endian
systems!  You can't send data between them like that.
Use htonl() and ntohl() to convert integer values between "machine" order and
"network" order when sending them.  Sending float values like this is
really tricky, and must only be attempted when you understand how float
values are represented.

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

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

From: Leonard N. Zubkoff <lnz@dandelion.com>
Subject: BOOTP Problems
Date: Mon, 25 Jul 1994 16:04:26 GMT

A number of people have reported problems getting BOOTPD to compile under
Linux.  While I'm running a 2.3.6 version from I Don't Remember Where, here
are the two changes required to make it work:


diff -u bootpd.c- bootpd.c
--- bootpd.c-   Mon Mar  7 12:48:22 1994
+++ bootpd.c    Wed Jun  1 09:34:47 1994
@@ -487,6 +489,14 @@
         * Process incoming requests.
         */
        for (;;) {
+               struct timeval xtimeout;
+               /* Linux select updates timeout argument. */
+               if (timeout != NULL)
+                 {
+                   xtimeout.tv_sec = timeout->tv_sec;
+                   xtimeout.tv_usec = timeout->tv_usec;
+                   timeout = &xtimeout;
+                 }
                readfds = 1 << s;
                nfound = select(s + 1, (fd_set *)&readfds, NULL, NULL, timeout);
                if (nfound < 0) {
diff -u hwaddr.c- hwaddr.c
--- hwaddr.c-   Mon Mar  7 13:21:53 1994
+++ hwaddr.c    Mon May 30 13:57:49 1994
@@ -68,7 +68,7 @@
        struct sockaddr_in *si;
 
        bzero((caddr_t) & arpreq, sizeof(arpreq));
-       arpreq.arp_flags = ATF_INUSE | ATF_COM;
+       arpreq.arp_flags = ATF_COM;
 
        /* Set up the protocol address. */
        arpreq.arp_pa.sa_family = AF_INET;
@@ -77,6 +77,7 @@
 
        /* Set up the hardware address. */
        bcopy(ha, arpreq.arp_ha.sa_data, len);
+       arpreq.arp_ha.sa_family = ARPHRD_ETHER;
 
        /* XXX - Why does this give ENXIO on Solaris 2.X ? -gwr */
        if (ioctl(s, SIOCSARP, (caddr_t) & arpreq) < 0) {

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

From: dranch@ecst.csuchico.edu (David A. Ranch)
Subject: Re: Quotas and Accounting in Kernel?
Date: 25 Jul 1994 19:23:28 GMT

In article <JUHA.VIRTANEN.94Jul24004156@gamma.hut.fi>,
Juha Virtanen <jiivee@hut.fi> wrote:
>
>As a side note I tell that kernel patches as they're found in
>acct-1.1.18.tar.gz package still apply to Linux-1.1.34
>kernel. Works great!
>

Speaking of Quotas.. I have a problem here.

I recently installed quotas w/o a hitch except its not quite working.
Quota will function for all user directories (/user) but won't recognize
any files in user's sub-directories! ( /user/dranch/download/ )

I'm missing something simple but I'll be damned if i can find it!

Thanks in advance!


-- 
 +------------------------------------------------------------------------+
 |  David A. Ranch [CMPE Major]                 dranch@ecst.csuchico.edu  |
 |                                             sysop@trinity.chico.ca.us  |
 |                                                                        |

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

From: rsanders@mindspring.com (Robert Sanders)
Subject: Re: what's this stuff? (pI[ITE PO-RU ...)
Date: 25 Jul 1994 19:36:51 GMT

On 25 Jul 1994 14:59:52 GMT, vox@asterix.uni-muenster.de (Andreas Vox) said:

> A friend of mine suggested this solution, in case you set it off by
> mistake:

> type (blindly): cat /dev/hda ============

> then interrupt with CTRL-C

Come on, I keep seeing "cat /vmlinuz", "cat /dev/hda" and other
totally bogus tricks.  It's very simple: ^N messes up your screen, ^O
fixes it.  So, all you need is a way to send ^O to your screen, so
let's make that file.

Type exactly what you see below, with one exception: where it says ^O,
hold down the CTRL key and press the 'O' key, and where it says ^D,
hold down the CTRL key and press the 'D' key.

cat > fix
#!/bin/sh
echo ^O
^D
chmod 755 fix

Now, just put that somewhere in your PATH and you'll be able to make
your screen happy by typing "fix" at the command line.

Sheesh.


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

From: ws@xivic.bo.open.de (Wolfgang Schelongowski)
Subject: Re: GOTO haters ..Re: Linux Performance Enhance ?
Date: 25 Jul 1994 18:18:39 +0200

In <DHOLLAND.94Jul21124451@husc7.harvard.edu> dholland@husc7.harvard.edu (David Holland) writes:

>debruijn@cs.utwente.nl's message of Thu, 21 Jul 1994 12:42:47 GMT said:

> > Tsk... : What have they been telling you kids in school?

>Tsk, tsk, what have they been telling YOU in school?

You are _now_ at Harvard. They certainly have a library which has the
ACM Computing Surveys. Read D.E. Knuth's article "Structured Programming
with go to Statements" (Vol. 6, No. 4, Dec. 1974, p. 261 ff). All the 
basic arguments mentioned in this thread have been written there,
although it was nice to hear about details like O(n^4) properties.

To anybody else, Knuth's article sums up the "go to debate" which was
started by E.W. Dijkstra in 1968. Highlights IMHO are: 
 Knuth wouldn't mind having a 'go to' but probably would never use it.
and
 Needing 'go to's to code in e.g. PL/I is a sign of bad program design.


> > (   well, even that is not true...
> >     A while _construct_ with a predicate P transforms the
> >     state of the program from some state Q to the state (not P)
> >     Note that these states are minimal. 

>This is symbolic gibberish.

_I_ write programs generally to achieve a certain result. So if I want 
a certain condition 'cond' to hold, I write
  while ( ! cond ){
    statements
  };
and after the loop, condition cond does hold. (Showing that the loop 
terminates is a different story). And I only have to understand 
'cond' and 'statements' to comprehend what happens, _nothing_else_
in the rest of the program.


> > The compiler _translates_ this to some executable code.

>That is, it makes the simple transformation

>while (a) b;  --->  if (a) { b; repeat this line; }

>which then becomes

>evaluate a
>if false jump out
>evaluate b
>jump to top

Apart from arguments already mentioned by somebody else, the compiler
knows much better than the average programmer how to optimize
for a certain machine structure. In the early seventies, R. Buchmann
(then of Rechenzentrum Uni Bochum) even offered a bet that nobody could
produce Assembler code that ran more than two times faster than
the code produced by the ALGOL60 compiler from an equivalent program. 
Nobody could take him on.
-- 
Wolfgang Schelongowski  ws@xivic.bo.open.de

"If you don't look after knowledge, it goes away."
  -- Terry Pratchett, The Carpet People

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

Subject: Re: New kernel message at boot time?
From: dholland@scws34.harvard.edu (David Holland)
Date: 27 Jul 1994 14:40:17 GMT


urlichs@smurf.noris.de's message of 27 Jul 1994 11:54:30 +0200 said:

 > > How does Linux handle swapping zeroed pages which haven't been
 > > touched? (Does it swap them out, or just discard them?) Some
 >
 > Zeroed pages are mapped in anonymously, i.e. they don't even exist until
 > you touch them. Therefore, they definitely are not swapped out.

Ok, just checking.

(After all, I would have expected to find the .34 "new" swap behavior
all along, too.)

--
   - David A. Holland          | "The right to be heard does not automatically
     dholland@husc.harvard.edu |  include the right to be taken seriously."

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

From: ctoriger@starbase.neosoft.com (Chris Origer)
Subject: 1.1.36 make problem: 'NULL' undeclared
Date: 27 Jul 1994 12:18:03 GMT

Add #include <linux,types.h> to /usr/src/linux/drivers/char/psaux.c's list
of includes.
Chris

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


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