Subject: Linux-Development Digest #912
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, 13 Jul 94 20:13:08 EDT

Linux-Development Digest #912, Volume #1         Wed, 13 Jul 94 20:13:08 EDT

Contents:
  Re: Energy Star Screen Saver for X? Monitor Shutdown codes? (Mark Evans)
  Re: VLB-IDE support? (Lee Sau Dan ~{@nJX6X~})
  Just installed shadow and now finger doesn't get last login right? (Steve Davies)
  mpeg_play (and/or xplaygizmo) NO MOTIF ? (Christophe Person)
  port for VMEbus 68030? (HiWi Carsten Thiel)
  /usr/include/linux/timers.h (Thomas Quinot)
  Re: Truedox mousc/trackball drivr? (Stephen R. van den Berg)
  Re: Help rm !! (Stuart Herbert)
  Re: What is this error? (Riku Saikkonen)
  Re: What is this error? (Pascal Haible)
  Re: Why no AFS? (Sarr J. Blumson)
  Re: 1.1.28: SCSI disks inverted ! (Bernd Mielke)
  Re: What is this error? (Lee J. Silverman)
  Cannot open RAW socket: Protocol not supported (August R. Wohlt)
  Re: What is this error? (Mark Evans)
  GETOPTS in BASH doesn't work! (Kyle Dawkins)
  Re: Linux Performance Enhance ? (Ron Smits)
  ncr_slack.3 error? (Kai Siemonsen)
  system("ls") doesn't display anything to screen? (Tim Smith)

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

From: evansmp@mb52112.aston.ac.uk (Mark Evans)
Subject: Re: Energy Star Screen Saver for X? Monitor Shutdown codes?
Date: Tue, 12 Jul 1994 17:50:39 GMT

Ian McCloghrie (imcclogh@cs.ucsd.edu) wrote:
: crocker@opine (MATTHEW CROCKER) writes:
: >somebody correct me if I'm wrong...  but I'm pretty sure that most graphics
: >cards DON'T support energy star monitors  (ie by sending them a signal to 
: >shutdown.)   Most of the energy star monitors just look for a blank screen 
: >(ie completly black) for a duration then they will shut themselves down.

: I don't know about the Mag monitors, but the docs for my Sony
: GDM-17se1 say that it goes into "power saving" mode if you drop the
: sync signal (either horizontal or vertical) for more than a second or
: two.  I've not seen any way to do this with XF86 (short of hacking the
: X server, which I don't really have the free disk space to do), the
: screen saver mode just paints black on the entire screen.  (In fact,
: non-power saving monitors would probably be extremely confused by the
: lack of a sync signal)

The screen blanker is part of the kernel, it's delay is usually set
by the setterm command.

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

From: h9210876@hkux15.hku.hk (Lee Sau Dan ~{@nJX6X~})
Subject: Re: VLB-IDE support?
Date: Tue, 12 Jul 1994 06:27:05 GMT

Doctor Padds (padds@scorpion.bsa.co.uk) wrote:

>> I have a cheap VLB IDE controller in my system running 2 large IDE drives.  While Linux doesnt directly use any of their fancy features for the 32bit transfers, it does get the basic benefits of speed from them.

I also have a cheap VLB IDE controller driving 2 harddisks.  It's sad to hear that Linux
does not directly take advantage of the 32bit transfers (Linux is a 32bit OS).

The manual of my card only teaches me how to configure the jumpers.  Technical
information such as how to use those 32bit transfers by accessing I/O ports and registers
on the card is not included (and I don't think the manufacturer will disclose such
information).  Disassembling the drivers (for DOS and Windows) on the included diskette
doesn't help, since I can't interpret those I/O instructions precisely!  OTHEWISE,
I could try to write a driver for VLB IDE.



>> Without all of the extras I still get 1.4 MB/Sec from both drives, though partition to same prtition copies are average, copys between drives are VERY fast.

This is not because yours is a VLB card.  It is just because that in the case of
interdrive copying, the amount of movement of the disk heads is much reduced.  So, it
should be much faster than intradrive copying.



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

From: steve@iaccess.za (Steve Davies)
Crossposted-To: comp.os.linux.help
Subject: Just installed shadow and now finger doesn't get last login right?
Date: 12 Jul 1994 23:12:08 +0200

Hi Linuxers,

I have seen a number of recent postings from users who have installed
shadow password support on a Slackware system and are now finding that
the "finger" command gives the wrong "Last login" information.

This happened to me, and this is why:

The "lastlog.h" file that comes in the shadow distribution uses a
different layout for /var/adm/lastlog to the one declared in
/usr/include/bsd/utmp.h - which is the layout finger (and the
old non-shadow login etc) are expecting.

If you compile the shadow code using the supplied lastlog.h you
will end up with login etc all expecting (and writing!) 32 byte
records to lastlog whilst finger and other old programs are
expecting 28 byte records.

In fact the README does warn you to make sure that lastlog.h is right,
but I guess I expected that having applied a Linux-specific patch to
the shadow suite that this would be correct (I know, I know...)

Here is what I did to fix the problem:

        mv lastlog.h lastlog.h.hid
        ln -s /usr/include/bsd/utmp.h lastlog.h

and then redid "make" and "make install".

Of course if you have been running for a while with this discrepancy
your /var/adm/lastlog is pretty stuffed.  I guess there is nothing
wrong with "rm /var/adm/lastlog" and "touch"ing a new one, but I
elected to leave it alone and it will come right as each user logs
in again.

I hope that this is helpful to someone!

Steve

---
Steve Davies, Compustat (Pty) Ltd
Internet Access public-access service
steve@iaccess.za   steve@cstat.co.za

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

From: chrisp@dirac.neusc.bcm.tmc.edu (Christophe Person)
Crossposted-To: comp.os.linux.misc
Subject: mpeg_play (and/or xplaygizmo) NO MOTIF ?
Date: 12 Jul 1994 16:19:31 -0500

Dear linuxers,

DOes one of you know where I could find a binary version of mpeg_play 2.1 
and/or xplay_gizmo for linux ?

These version use the motif widget and I don't expect to get it soon.

Thanks

Christophe Person - Computational Neurobiology Lab - Baylor College of Medicine
Voice: (713) 798 49 79   Fax: (713) 798 87 11

                "Only God can make a random selection"

Here is <b><a href="http://dirac.bcm.tmc.edu/people/chrisp.html">Web
Page</a></b>.



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

From: hict@seneca.irm.tu-clausthal.de (HiWi Carsten Thiel)
Subject: port for VMEbus 68030?
Date: Tue, 12 Jul 1994 20:04:31 GMT

Hello!

Has there been an attempt of porting Linux on a VME-bus CPU? I've heard of
something for Ataris...

Bye
    Carsten


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

From: thomas@melchior.frmug.fr.net (Thomas Quinot)
Subject: /usr/include/linux/timers.h
Date: 12 Jul 1994 14:31:12 +0200


Does anyone know if the functions add_timer and del_timer (at the end of
/usr/include/linux/timers) are available for an user-level application, or
are they only for kernel use ?

Also, is there an easy way to do the same thing while being posix-compliant ?

 Thanks in advance...

-- 
Thomas QUINOT                       |  "Un roi sans divertissement est un
<thomas@melchior.frmug.fr.net>      |             homme plein de mishre."
Linux - choice of a GNU generation  |                          Jean GIONO

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

From: berg@pool.informatik.rwth-aachen.de (Stephen R. van den Berg)
Subject: Re: Truedox mousc/trackball drivr?
Date: 13 Jul 1994 15:58:56 GMT

In article <2vpi6j$au0@usenet.srv.cis.pitt.edu>,
Bill Broadley <broadley@neurocog.lrdc.pitt.edu> wrote:
>I bought a nice trackball for $15 or so.  TrueDox trackball with 3 buttons.

>It works as an MS compatible mouse but of course I only get to use
>two buttons.

>I'd be happy to write a driver for it, but the middle button produces
>no output.  I.e. if I do a od -x < /dev/mouse.

>I probably have to send the mouse something to put it into another mode?

Have you tried fetching the latest version of "selection"?
A while back I had similar problems with my Logitech Trackman (a trackball
with three buttons).  I patched the selection program and sent the patches
to the author.
-- 
Sincerely,                                  berg@pool.informatik.rwth-aachen.de
           Stephen R. van den Berg (AKA BuGless).

"To err is human, to debug ... divine."

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

From: ac3slh@sunc.sheffield.ac.uk (Stuart Herbert)
Subject: Re: Help rm !!
Date: 13 Jul 1994 16:09:04 GMT

Tim Smith (tzs@u.washington.edu) wrote:

: most people.  Generally, most Unix programs don't delete files, so
: almost all accidental deletions take place via a user initiated rm
: command.

A proper undeletion system will also preserve modified files, rather
than just deleted ones.  Novell's salvage facility isn't known as a
poor man's RCS for nothing.

Stuart
--
Stuart Herbert -- S.Herbert@shef.ac.uk

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

Subject: Re: What is this error?
From: riku.saikkonen@compart.fi (Riku Saikkonen)
Date: Wed, 13 Jul 94 18:34:00 +0200

>shared library programs that it needs from /lib/.  One option is to
>make a directory called lib in the BBS directory, and copy the shared
>library to this directory.  Another option is to recompile 'clear'

Huh? How about a symlink? Takes much less disk space...

-=- Rjs -=- riku.saikkonen@compart.fi - IRC: Rjs
GCS/O -d+ p c++(+++) l++ u e m++@ s/- n+ h-- f+ !g w+ t/Tolkien+++ r !y(*)
"Her voice such love and longing filled / he raised his eyes, his mourning
stilled, / and felt his heart new-turned to flame / for her that through
peril to him came." - J.R.R. Tolkien, _The Lays of Beleriand_

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

From: haible@izfm.uni-stuttgart.de (Pascal Haible)
Subject: Re: What is this error?
Date: 13 Jul 1994 16:16:51 GMT

In article <Csvv1t.10n@aston.ac.uk>,
Mark Evans <evansmp@mb52112.aston.ac.uk> wrote:
>Lee J. Silverman (lee@netspace.students.brown.edu) wrote:
>:      It looks like the 'clear' program that the BBS program calls
>: is dynamically linked and the BBS uses chroot.  It isn't finding the
>: shared library programs that it needs from /lib/.  One option is to
This is not the problem.
See Mitchum DSouza's reply to the original post.

>: make a directory called lib in the BBS directory, and copy the shared
>: library to this directory.  Another option is to recompile 'clear'

>No need to copy, just use a symbolic link.

A symbolic link??
ftpd has this problem for anonymous fto:
it does a chroot to e.g. /home/ftp.
Making a symlink from /home/ftp/lib/libc.so.4 to /lib/libc.so.4
won't work after the chroot.
A hard link works, but of course only if ~ftp/lib is on the same
filesystem as /lib.

Pascal
-- 
cand. mach. Pascal Haible haible@IZFM.Uni-Stuttgart.DE

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

From: sarr@citi.umich.edu (Sarr J. Blumson)
Subject: Re: Why no AFS?
Date: 13 Jul 1994 14:18:09 GMT
Reply-To: sarr@citi.umich.edu

In article
<YURI.94Jul13043757@shimari.cmf.nrl.navy.mil>,
yuri@shimari.cmf.nrl.navy.mil (Yuri Trifanov)
writes:
|> 
|> One would have to start out from scratch from
|> the outdated protocol
|> documentation and packets stolen from the
|> network.

And the current Transarc product uses a different protocol from
the old CMU documentation.

|> AFS is a continually evolving product entirely proprietary to 
|> Transarc. The source is fairly expensive and non-redistributable.

There was a rumor earlier this year that MIT (which does have a
source license) was doing a Linux AFS client for their own use. 
If true, it is possible that Transarc would allow a binary
distribution of the result (as they do for the Apollo client);
one would have to ask them, of course.

-- 
========
Sarr Blumson                         sarr@citi.umich.edu
voice: +1 313 764 0253               home: +1 313 665 9591
CITI, University of Michigan, 519 W William, Ann Arbor, MI 48103-4943

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

From: mielke@omega.physik.fu-berlin.de (Bernd Mielke)
Subject: Re: 1.1.28: SCSI disks inverted !
Date: Wed, 13 Jul 1994 16:52:20 GMT

rene@renux.frmug.fr.net (Rene COUGNENC) writes:



>Funny :-)

>With 1.1.28, when I:

>        mount /dev/sda1 /usr
>        mount /dev/sda2 /home
>        mount /dev/sdb1 /mirror
>        mount /dev/sdb2 /var

>The two disks sda and sdb are inverted; I find the mirror stuff in /usr,
>the var stuff in /home...

>This is with xiafs, Adaptec 1540B, kernel 1.1.28.

> 
>--
> linux linux linux linux -[ cougnenc@renux.frmug.fr.net ]- linux linux linux 

This Error is not funny :-<

It prevents to boot my machine!!!


instead of detecting
sda1
sdb1 sdb2 sdb3 sdb4
it detects

sda1 sda2 sda3 sda4
sdb1

sda1 is my dos partition and sdb2 my root partition.

and prints


EXT2-fs: unable to read superblock
MSDOS: bread failed
Kernel panic:  VFS: Unable to mount root fs on 08:12


I'm running Linux on PC 486DX66 with two SCSI-disks Adaptec 6360 chip
A similar problem occures on other machines with scsi at our department.

 
Bernd


mielke@omega.physik.fu-berlin.de

 


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

From: lee@netspace.students.brown.edu (Lee J. Silverman)
Subject: Re: What is this error?
Date: 12 Jul 1994 19:14:06 GMT


        It looks like the 'clear' program that the BBS program calls
is dynamically linked and the BBS uses chroot.  It isn't finding the
shared library programs that it needs from /lib/.  One option is to
make a directory called lib in the BBS directory, and copy the shared
library to this directory.  Another option is to recompile 'clear'
statically linked, and put a copy of this executable in the BBS's
directory.  The first option is probably easier.

Lee

--
Lee Silverman, Brown class of '94, Brown GeoPhysics ScM '95
Email to: Lee_Silverman@brown.edu
Phish-Net Archivist: phish-archives@phish.net
"Nonsense - you only say it's impossible because nobody's ever done it."

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

From: wohlt@eniac.seas.upenn.edu (August R. Wohlt)
Subject: Cannot open RAW socket: Protocol not supported
Date: 13 Jul 1994 17:17:25 GMT

When I try to open a RAW socket as follows:

#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netdb.h>
sock = socket(AF_UNIX, SOCK_RAW, IPPROTO_RAW)

I get 'Protocol not supported.'  I'm using Slackware 1.2.0, Kernel 1.0.8 
straight out of the box, so to speak.  Is it *really* unsupported,
or must I do something to the kernel to get it to cooperate?

Thanks!

August R. Wohlt, (wohlt@eniac.seas.upenn.edu)

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

From: evansmp@mb52112.aston.ac.uk (Mark Evans)
Subject: Re: What is this error?
Date: Wed, 13 Jul 1994 14:32:17 GMT

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

:       It looks like the 'clear' program that the BBS program calls
: is dynamically linked and the BBS uses chroot.  It isn't finding the
: shared library programs that it needs from /lib/.  One option is to
: make a directory called lib in the BBS directory, and copy the shared
: library to this directory.  Another option is to recompile 'clear'

No need to copy, just use a symbolic link.

: statically linked, and put a copy of this executable in the BBS's
: directory.  The first option is probably easier.

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

From: dawkins@sound.music.mcgill.ca (Kyle Dawkins)
Subject: GETOPTS in BASH doesn't work!
Date: Wed, 13 Jul 1994 19:11:51 GMT

Greeting.
We have just installed Linux (0.9pl15+) on our 486/50 and are
having some trouble getting shell scripts to run under bash or sh.
It seems to have trouble with the "getopts" command. Actually,
it seems that the getopts command does not exist, although the man pages
for bash seem to think it does. No amount of testing and fiddling has come
up with anything, and we definitely need a solution. Are we overlooking
something with bash or is it a bug? If so, where can I get a newer release?
Thanks
Kyle
dawkins@music.mcgill.ca

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

From: ron@draconia.hacktic.nl (Ron Smits)
Subject: Re: Linux Performance Enhance ?
Date: 13 Jul 1994 18:10:23 GMT

>>>>> "Rob" == Rob Janssen <rob@pe1chl.ampr.org> writes:

    Rob> In <DAVIS.94Jul12144609@pacific.mps.ohio-state.edu> davis@pacific.mps.ohio-state.edu ("John E. Davis") writes:

    >> In article <2vtcrs$78d@smurf.noris.de> urlichs@smurf.noris.de (Matthias
    >> Urlichs) writes: 
    >> > > At least this does the same as your code without those ugly goto's.
    >> > > 
    >> > Not really...
    >> >
    >> > It's possible to restart the loop, of course, by setting "what" to zero at
    >> > the end, but the generated code is worse. I hate suboptimal code even more
    >> > than code with gotos. ;-)

    >> It is true that the two pieces of code are different.  However, even setting
    >> `what' to zero and re-executing the loop will fail since `what' has been
    >> declared static.  Here is the original code.  My suggested replacement
    >> follows.

    Rob> [...]

    >> If you are worried about performance, I suggest that you
replace the switch
    >> with an `if' statement.  However, this might not be necessary
with gcc since
    >> there is an option for it to optimize a switch with jumps.


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

    Rob> static int try_to_free_page(int priority)
    Rob> {
    Rob>    int i = 5;
    Rob>    static int what = 0;

    Rob>    switch (what)
    Rob>    {
    Rob>        while (i--)
    Rob>        {
    Rob>        case 0:
    Rob>          if (priority != GFP_NOBUFFER && shrink_buffers(i)) {
    Rob>            what = 1;
    Rob>            return 1;
    Rob>          }
    Rob>          /* drop */
    Rob>        case 1:
    Rob>          if (shm_swap(i)) {   
    Rob>            what = 2;
    Rob>            return 1;
    Rob>          }
    Rob>          /* drop */
    Rob>        case 2:
    Rob>          if (swap_out(i)) {
    Rob>            what = 0;
    Rob>            return 1;
    Rob>          }
    Rob>        }
    Rob>    }
    Rob>    return 0;
    Rob> }


    Rob> How is that?

    Rob> Rob

This is the best version I have seen sofar, but what is the unknown
C-language feature?



--



                Ron Smits
                ron@draconia.hacktic.nl
                Ron.Smits@Netherlands.NCR.COM

/*-( My opinions are my opinions, My boss's opinions are his opinions )-*/
/*-(                They might not be the same                        )-*/

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

From: spiff@isys-hh.Hanse.DE (Kai Siemonsen)
Subject: ncr_slack.3 error?
Date: Tue, 12 Jul 1994 21:23:57 GMT

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.
After inserting the disk, Linux writes:
mount: mount point /var/adm/mount does not exist.

Any help suggested ( beside installing from another source)?

spiff


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

From: tcsmith@csi.nb.ca (Tim Smith)
Subject: system("ls") doesn't display anything to screen?
Date: Wed, 13 Jul 1994 13:30:06

Hello

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

-Tim Smith

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


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