Subject: Linux-Development Digest #393
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:     Fri, 21 Jan 94 00:13:08 EST

Linux-Development Digest #393, Volume #1         Fri, 21 Jan 94 00:13:08 EST

Contents:
  Re: tty64 (sic) input overrun (Ben Lippolt)
  lp Device Driver Question (Dean Jansa)
  Re: problems with building shared libs (Mitchum DSouza)
  Data Sheets (Mark A. Bentley)
  Re: Subnetting on non byte boundaries (Mr. Bassman)
  socket communication, but how ? (Hinrich M. Schencking)
  UPS debugger (Patrick Reijnen)
  [Q S3] 805 left screen black after exiting (Hannes Reinecke)
  Re: [ANSWER] PL14n and PL14o ext2 problems ("P.J. Wilkin")
  Re: Subnetting on non byte boundaries (Mike McLagan)
  Re: Subnetting on non byte boundaries (Mike McLagan)
  Re: problems with building shared libs (Doug McIntyre)
  Re: X Driver Development (Dirk Hohndel)
  Re: UPS debugger (Abhinandan Jain)
  Re: bug or misfeature in libc 4.5.8 libio/iogetline.c (Doug Evans)
  Writing dos programs under linux (Shawn Jeremye Smith)
  Re: nfs performance (Renee Teunissen)
  Missing sgtty.h in MGR v0.56 compile? (Eric Merth)

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

From: bjl@frigga.research.ptt.nl (Ben Lippolt)
Subject: Re: tty64 (sic) input overrun
Reply-To: B.J.Lippolt@research.ptt.nl
Date: Thu, 20 Jan 1994 14:33:25 GMT

tytso@ATHENA.MIT.EDU (Theodore Ts'o) writes:

>   From: hugo@artware.nl
>   Date: Thu, 13 Jan 1994 17:25:20 GMT

>   Since i switched to linuxpl14m, i have a repeated warnig on
>   the current vitual terminal:
>   tty64: input overrun

>Starting with 0.99pl14k or so, linux now prints a message to warn you
>when the UART overflowed and dropped some data.

>This generally happens if you only have 16450 UARTS, and it's the
>system's way of telling you that you really should spend that $15.00 to
>buy 16550A's.....  

Well, in my case I also get these messages, but I get them when I use
my mouse with "selection". I use a standard serial mouse (Microsoft or
Mouse Systems mode) at 1200 baud on ttyS0. I have compiled "selection"
(and "test-mouse") with libc-4.4.4 and with libc-4.5.[8-10], but that 
does not seem to make any difference. But when I booted an old kernel 
(something like 0.99.12) the message suddenly went away. So I suspect
something in the latest kernel releases (I tried it till 0.99.14p).


Ben Lippolt

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

From: djansa@shorty.cs.wisc.edu (Dean Jansa)
Subject: lp Device Driver Question
Date: 20 Jan 1994 15:07:57 GMT

Hi all,

I was wondering if anyone could point me in the right direction on the 
following.  I want to be able to read from /dev/lp{*}, I have a HP 4L
that will "talk" bi-directionally.  I can get the status of paper, toner,
jams, number of pages printed, etc by using PJL to ask the printer questions.
Simple enough, I can do it in one direction, that is I can send the question 
but cannot get a reply.

After digging in the lp printer driver I see there is no way to read the 
printer port.  (Or I missed it)  Can anyone offer me help in modifing the
code to read the lp port?  I'd like to have a HP 4L printer status deamon
running to keep the user up to date on the status of the printer...

Thanks for any help...
-Dean
djansa@shorty.cs.wisc.edu


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

From: Mitchum DSouza <m.dsouza@mrc-apu.cam.ac.uk>
Subject: Re: problems with building shared libs
Date: 20 Jan 1994 15:30:20 -0500
Reply-To: m.dsouza@mrc-apu.cam.ac.uk

According to andre schroeter:
| hallo,
| if i try to build shred libs with tools 2.10 i get an error about
| an unresolver '___main' i searched all libs i have and found no reference
| to this. i heard it was defined in libgcc but this is obsolete with
| the libc 4.5.8....
| 
| any hints for me???
| can i change the mkimage and remove the insertion of '___main' ??

How many times do I have to repeat this ?? I am guilty of wasting unknown
amount of bandwidth.


If you are using libc version 4.5.8 and above then you MUST replace the -lgcc
in the mkimage line with `gcc --print`. So your line becomes something like

        mkimage -l foo blah blah -lc `gcc --print` -lc

Note: that the backquotes must be intact. Basically gcc --print prints out the
pathname to the static version of libgcc.a as from version libc.so.4.5.8
onwards the shared libgcc has been removed. libgcc.a holds the definition of
__main now.

Alternatively you haven't specified -lgcc on your line at all.

Mitch

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

From: bentlema@cda.mrs.umn.edu (Mark A. Bentley )
Subject: Data Sheets
Date: Thu, 20 Jan 1994 17:43:18 GMT

I'm looking for any data sheets any of you device driver writers may have.
Information to allow me to program floppies, IDE and SCSI interfaces would
be very much appreciated.  Also, any information on 16450 and 16550 UARTS
would be nice.

Thanks,  Mark Bentley -- bentlema@cda.mrs.umn.edu
University of Minnesota, Morris -- U.S.A.


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mark Bentley                     bentlema@caa.mrs.umn.edu     (VAX/VMS)
University of Minnesota, Morris          @cda.mrs.umn.edu (UNIX/Ultrix)
UXEM Contact Person                      @nxsci173a.mrs.umn.edu  (NeXT)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


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

From: bassman@isoit034.bbn.hp.com (Mr. Bassman)
Subject: Re: Subnetting on non byte boundaries
Date: Thu, 20 Jan 1994 19:08:01 GMT

In article <1994Jan20.004041.19527@titan.os.open.de>, johannes@titan.os.open.de (Johannes Stille) writes:
|> In article <CJrvo5.5It@hpwin052.uksr.hp.com> bassman@isoit034.bbn.hp.com (Mr. Bassman) writes:
|> >    Here in my little corner of the world, we have subnets which don't seem
|> >to be on byte boundaries.
|> >
|> >    Our subnet mask is 255.255.248.0 which means that the first 21 bits out
|> >of 32 refer to the subnet, and the last 11 are the device. I don't know a vast
|> >amount about it all, but our linux box has no problems at all. I think it should
|> >make no difference anyway, as the subnet-routing is handled by dedicated
|> >hardware.
|> 
|> Sorry, it should make a difference for routing. Probably you didn't try
|> to access machines on you local ethernet with an address that differs in
|> the third byte from your own.

        I don't know why, but it does actually work - both to other
machines on the same subnet (whether the 3rd byte was the same or
not, didn't matter), and to machines in other subnets. In fact,
it's been working since at least pl12, although it sometimes
crashed as the code was less stable. Strange...  still I guess we
should get the new kernel anyhow.

Mr. Bassman
Platform Services (UNIX)
Hewlett-Packard, Boeblingen, Germany
bassman@hpbbi30.bbn.hp.com

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

Date: 20 Jan 1994 13:49:00 +0100
From: hinrich@probnoblem.oche.de (Hinrich M. Schencking)
Subject: socket communication, but how ?

Hello folks!

Is there anyone, who have experience with socket I/O under Linux ?
Maybe a little example-program will be helpfull.
(Especially for the the AF_UNIX and AF_INET family)

What kind of daemons (inet, portmap, ...) have to run before ?

Thanx in adv.

-hms-
* Hinrich M. Schencking, Krefelderstr. 35, 52070 Aachen, Germany, Europe *
## CrossPoint v2.93 ##

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

From: patrickr@sci.kun.nl (Patrick Reijnen)
Subject: UPS debugger
Date: Thu, 20 Jan 1994 18:42:25 GMT

Hi Folks,

At university I'm using de UPS debugger for debugging C programs. As I like this one more than all the GNU debuggers I tried to install it under Linux on my 486.

Installation went on correct untill stack properties were needed. The code seemed not to include code for a 486.


My question now is if somebody knows whether a linux version of UPS is under development or maybe even exists. Or maybe there are plans to port it?

I've already looked around on the linux sites without succes.




Thanks for your help,



Patrick Reijnen,



***********************************************
* Patrick Reijnen                             *
* Faculty of Mathematics and Computer Science *
* Department of Computer Science              *
* Catholic University of Nijmegen, Holland    *
*                                             *
* Email: patrickr@sci.kun.nl                  *
*        patrickr@cs.kun.nl                   *
***********************************************
--


***********************************************
* Patrick Reijnen                             *

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

Crossposted-To: comp.windows.x.i386unix
From: hare@mathi.uni-heidelberg.de (Hannes Reinecke)
Subject: [Q S3] 805 left screen black after exiting
Date: Thu, 20 Jan 94 16:48:00 GMT

Hi all,
at least i got a new video card ( Miro 8s, S3 805, 1 Meg Dram ),
but unfortunately after exiting X (XF86 2.0, Linux 0.99.14) the 
screen is left black with a blinking cursor. Ok, the cursor is 
at the right position, but normally there should be more, eg text.
Is it possible, that the XF86_s3 changes the default colormap, so
that the former white is now a brilliant black ?
If so, couldn't I load the original colormap ?

Any hints ?

Greetings from Heidelberg

Hannes
(hare@vogon.mathi.uni-heidelberg.de)

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

From: wilkinp@cyclops.demon.co.uk ("P.J. Wilkin")
Subject: Re: [ANSWER] PL14n and PL14o ext2 problems
Date: Thu, 20 Jan 1994 18:48:14 +0000

Can all the useful information from this thread be compressed and placed in
the relevent linux FAQ, as it is sadly needed by those of us
new to unix (and those not so new)

Regards

-- 
- Peter Wilkin -+-----------------------------------+-------------------------
+ Kidbrooke     |"As sane as anyone else"           | All views and comments +
+ London. UK    |"sleeping with eyes open"          | are my own, so take    +
+               |"dead but not forgotten" ???       | lightly if needed      +

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

From: mmclagan@invlogic.com (Mike McLagan)
Subject: Re: Subnetting on non byte boundaries
Date: Thu, 20 Jan 94 17:05:49 GMT

In article <1994Jan20.051411.14674@colesmyer.com.au> jlew@colesmyer.com.au writes:
>
>In article <758577697.38snx@work.invlogic.com>, mmclagan@work.invlogic.com 
> (Mike McLagan) writes:
>
>>    I have a situation where I would like to divide the 1 class C address I 
>> have into a number of subnets.  The docs/HOWTO say that subnetting is
>> supported, but only on byte boundaries.  Does anyone know if there's a
>> plan or a way to get to use non-byte boundaries for subnetting?  How much
>> work is involved in it?
>> 
>>    Specifically, I'd like to create:
>> 
>>    222.222.222.10
>>    222.222.222.20
>>    222.222.222.30
>>    222.222.222.00
>>     
>>    as subnets with up to 14 hosts each, and use a subnet mask of
>>    255.255.255.240.
>

Hi,

   To quote myself, in my own defense!  

   I've had something like 30 respondants kindly point out to me that .10, 
.20, .30 are all invalid as subnets!  

   Being half brain dead at the time of the posting, I pounded out the 222
part without thinking, and promptly put the final octet in HEX!  :(  So here
I sit, looking the part of an inventive, and dreaming networker, while in
fact all I did was mix up my bases!

   For the record, if anyone had great plans made from my mistake, I would
like to apologize.  .10, .20, and .30 are NOT valid.  (unless it's .0x10, 
.0x20, .0x30)

  Vindicated?  I think NOT!  :)

  Mike was here...


--
// email   -> "Mike McLagan" <mmclagan@invlogic.com>
// UUCP    ->  ...uunet!invlogic!mmclagan
// snail   -> Innovative Logic Corp, P.O. Box 3247 Laurel, MD, USA 20709-3247
// ma bell -> (301)206-7692
// ILC doesn't like my opinions, so I'm giving them to you without consent!

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

From: mmclagan@invlogic.com (Mike McLagan)
Subject: Re: Subnetting on non byte boundaries
Date: Thu, 20 Jan 94 17:10:01 GMT

In article <1994Jan20.051411.14674@colesmyer.com.au> jlew@colesmyer.com.au writes:
>The first part is correct, but the .00 is definitely NOT OK. With-in and
>with-out the 222.222.222.xxx address space, 222.222.222.0 is referred to by
>routers/gateways as the entire 222.222.222.xxx network. Networks external to
>222.222.222.xxx do not see the individual subnets within the 222.222.222.xxx
>network. They only see one single network, and this is known to them as
>222.222.222.0. It's a bit like if you're posting mail from Germany to
>me in Australia, your post office need not know my post office, it only needs
>to know that I'm in Australia. Hence your post office would only record
>"Australia" in its routing table and not all the post offices inside OZ.
>Once it gets into Australia, the local post office is then required.
>
>As a result, once you subnet a C-Class address (or B-Class/A-Class address
>space for that matter), you lose the "first" subnet which is required for
>identifying your network.
>

Sorry for the double reply, but I've got a question re the above:

Does this mean in a .240 subnet masked situation that using the .00 subnet
is forbidden?  If I am going to subnet that way should I not have .1, .2, .3,
and .4 machines?  (If not, I've got a BIG problem!)

   Mike was here...

--
// email   -> "Mike McLagan" <mmclagan@invlogic.com>
// UUCP    ->  ...uunet!invlogic!mmclagan
// snail   -> Innovative Logic Corp, P.O. Box 3247 Laurel, MD, USA 20709-3247
// ma bell -> (301)206-7692
// ILC doesn't like my opinions, so I'm giving them to you without consent!

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

From: merlyn@icicle.winternet.mpls.mn.us (Doug McIntyre)
Subject: Re: problems with building shared libs
Date: 20 Jan 1994 12:22:24 -0600

81239@novell1.rz.fht-mannheim.de (ANDRE SCHR?TER INFORMATIK) writes:
>if i try to build shred libs with tools 2.10 i get an error about
>an unresolver '___main' i searched all libs i have and found no reference
>to this. i heard it was defined in libgcc but this is obsolete with
>the libc 4.5.8....
>any hints for me???
>can i change the mkimage and remove the insertion of '___main' ??

libgcc isn't obsolete for libc 4.5.8, it just has moved. Namely into
the compiler's directory. Pick up a newer version of the compiler, 
(Gcc v2.5.7 has it). And look in /usr/lib/gcc-lib/i486-linux/2.5.7/libgcc.a.

nm /usr/lib/gcc-lib/i486-linux/2.5.7/libgcc.a
...
__main.o:
        ...
00000090 T ___main
        ...
-- 
Doug McIntyre                           merlyn@icicle.winternet.mpls.mn.us

Write to info@winternet.mpls.mn.us for more information about Winternet's
Internet services and dialups. 

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

From: hohndel@informatik.uni-wuerzburg.de (Dirk Hohndel)
Subject: Re: X Driver Development
Date: 20 Jan 1994 20:22:05 GMT

freedman@athena.mit.edu wrote:
:   I am working on an color X Driver for the W5186 chipset.
: I am having a little trouble with the page bank
: switching I think.  I get multible repeated, stable images
: on the screen.  I don't really understand the bank.s code.
: Besides the VgaDriverDoc is there any information I can get 
: about this file.  My problem may be in enableing the bank
: switching.  Is there a semi-standard way to do this?  Thanks
: for any help.

How about contacting the XFree86 team at XFree86@physics.su.oz.au?

        Dirk

--
 _     _           _            _   _     |  Lehrstuhl Informatik I
| | | |_) |/  |_| | | |_| |\ | | | |_ |   |  Universitaet Wuerzburg
|_/ | | \ |\  | | |_| | | | \| |_/ |_ |_  |  Am Hubland, D-97074 Wuerzburg

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

Subject: Re: UPS debugger
From: jain@telerobotics.jpl.nasa.gov (Abhinandan Jain)
Date: 20 Jan 1994 20:45:31 GMT

In article <CJxyMq.C4s@sci.kun.nl> patrickr@sci.kun.nl (Patrick Reijnen) writes:

Patrick> At university I'm using de UPS debugger for debugging C programs. As I like this one more than all the GNU debuggers I tried to install it under Linux on my 486.

Patrick> Installation went on correct untill stack properties were needed. The code seemed not to include code for a 486.


Patrick> My question now is if somebody knows whether a linux version of UPS is under development or maybe even exists. Or maybe there are plans to port it?

Patrick> I've already looked around on the linux sites without succes.


If you look in the LSM you will find that ups is available at 

    sunsite.unc.edu:/pub/Linux/devel/debuggers/ups-2.45.2-linux-0.1.ta.gz

I have insatalled it with no problems at all. 




-- 
Abhinandan Jain                    Jet Propulsion Laboratory
jain@telerobotics.jpl.nasa.gov     4800 Oak Grove Drive, Pasadena, CA 91109

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

Crossposted-To: comp.std.c
Subject: Re: bug or misfeature in libc 4.5.8 libio/iogetline.c
From: dje@canuck.cygnus.com (Doug Evans)
Date: Thu, 20 Jan 1994 20:09:01 GMT

H.J. Lu (hjl@nynexst.com) wrote:
> Jay Berkenbilt (ejb@ERA.COM) wrote:
> 
> : Hello.  I don't know whether this is the right place for this
> 
> It is the best one :-(.
>
> ...
> 
> : Short version: 
> : fgets() mutates the string passed to it even when no characters
> : are read into the buffer. 
> 
> It is very easy to "fix" :-(. I just want to know what ANSI C
> says about that.
>
> ...

According to 4.9.7.2 (ISO 7.9.7.2), fgets is not supposed to
modify the array if an EOF has been encountered and no chars
have been read in.

--
#include <std-disclaimer.h>

Doug Evans           Cygnus Support, Mountain View, CA
dje@cygnus.com                         +1 415 903 1412

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

From: w6f192@rick.cs.ubc.ca (Shawn Jeremye Smith)
Subject: Writing dos programs under linux
Date: 20 Jan 1994 12:40:33 -0800

There was a post about a week back about writing dos programs under
linux and then using some sort of a cross compiler to create an executable
which could be run on the dos side using a dos extender.  Does anyone know
if this is a reality or if it has been done for BSD and is possible to port?
...Please followup by email and I will post a summary...
Shawn Smith


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

From: Renee.Teunissen@freudsys.iaf.nl (Renee Teunissen)
Subject: Re: nfs performance
Date: 18 Jan 94  20:26:59 EST


> synchronous nature
>NFS is slowwwwww and doesn't scale very well.

 GG> That still doesn't explain why Linux's implementation is so
 GG> much slower than other implementations.
I don't know either. Now we tried something new. We installed NFS on the 386
sx16 (8MB) Novell machine and tried t o pump over data. it took linux 8 second
to store a 1MB file on the server, which is mutch faster than booting the same
machine with linux.
 GG> For example, I used iozone to try to guage how slow NFS is
 GG> on my network:
Could you please tell me what iozone is and is it sharable?


Regards,
, __
|__)
| \ enee.

---

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

From: emerth@gpu.srv.ualberta.ca (Eric Merth)
Subject: Missing sgtty.h in MGR v0.56 compile?
Date: Thu, 20 Jan 1994 20:16:59 GMT

I'm  trying to get MGR v0.56 going with Slackware's
Linux distribution. I believe that I've got gcc 2.5.8 
& the 4.4.4 libraries. My kernel is 0.99.14.

The make dies when a header called "sgtty.h" is included
(except that it doesn't seem to actually exist). The guilty 
include line uses angle brackets so I assume that sgtty.h
is supposed to be a linux header or a gcc header, and not
a MGR header. 

I can't find any file named "sgtty.h" anywhere on the machine,
but there is a "tty.h" header that came in the linux kernel 
source. By making a link "/usr/include/sgtty.h" to tty.h I
can compile with lots of warnings.

Does anyone have any ideas about what I've done here - I have
no idea what sgtty.h would contain and tried linking to tty.h
in desperation. The mgr executable that I was able to compile
starts but hangs, saying that it can't set the mouse mode.... 
I'm stumped!

Thanks very much in advance!

Eric Merth.

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


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