Subject: Linux-Development Digest #929
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:     Tue, 19 Jul 94 15:13:10 EDT

Linux-Development Digest #929, Volume #1         Tue, 19 Jul 94 15:13:10 EDT

Contents:
  Re: gcc and Linux (compiling)... (Dwight M Evers)
  ***NEEDED*** : Info on pty programming in C under Linux! (Amit-Margalit)
  Re: MAP_SHARED? (Eric Youngdale)
  patch 31 breaks kmem ps *sob* (Simon Ferrett)
  Re: gcc and Linux (compiling)... (Dick Edgar)
  Kernel Hacker's Guide (Jinwoo Shin)
  term adaptation of pine? (Mark R. Lindsey)
  Re: Linux Performance Enhance ? (Andreas Buschmann US/END3 60/1/29 #71409)
  traceroute (Ted Hoang)
  create /dev/audio (Jianfang Eve Li)
  Re: gcc and Linux (compiling)... (Kevin Lentin)
  Re: create /dev/audio (Harry C Pulley)
  Re: fact on linux vs sun (Kjetil Torgrim Homme)
  Re: term adaptation of pine? (David L Miller)
  Media Vision: Pro Video Board (Christian Holtje)
  Re: obsolete routing request (David Dyer-Bennet)
  drivers for removable media HD? (B. Despres)

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

From: evers@plains.NoDak.edu (Dwight M Evers)
Subject: Re: gcc and Linux (compiling)...
Date: Tue, 19 Jul 1994 12:28:34 GMT

Dwight M Evers (evers@plains.NoDak.edu) wrote:
:       I was wondering if when you ( I in this case ) compile a program 
: under Linux if the statement:
: #include      <stdio.h>
  main()
^^^^^^^^^ Sorry, sorry, sorry...I typed the post by had and read off a 
listing. I DID include this in my program.
: {
:       value1 = 10;
:       value2 = 20;
:       sum = value1 + value2;

:       printf(" the sum of %i and %i is equal to %i",value1,value2,sum);
:       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: }
:               is valid. I keep getting run errors. how do you compile 
: and use gcc under Linux? I looked in the FAQ and I did what was told. Not 
: a thing happens. I works under all other compilers I use.

:       Please specific about the steps you take in getting this to work.

: Thanx in advance.

        Since I did not specify the type of variable, the default was to 
a floating point, until it got down to the printf statement. There it 
output them as integers, via truncation, althought there was no need to.

        Yes the problem was in my backyard and not in the code or 
compiler. It was with how I tried to execute. I had not looked to see 
where the a.out* file was. I find it helps to types the correct phrases 
and syntax in order to get things to work.

        Thanx very much for everyones input! It was all well appreciated.

p.s. it worked with Watcom C/C++ v10.0

============================================================================
                        |       "...peace is a thing which a person
Dwight M. Evers         |           must be willing to fight for..."
evers@plains.NoDak.edu  |
        NDSU            |                       -Abe Lincoln
============================================================================


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

From: amitm@doronx.iso.dec.com (Amit-Margalit)
Subject: ***NEEDED*** : Info on pty programming in C under Linux!
Date: 19 Jul 1994 12:54:37 GMT
Reply-To: amit@tavis.enet.dec.com


--
Hello!

I am trying to fork a process off a major app. which has its I/O redirected. 
I need the forked process to think it is running with a real tty, so that ls
will not give me a single columns but a regular display. Only that I *DO* need
to get the forked process's output and feed it my own input!

I understand this needs a pty. I have looked in the telnetd sources, but they
are far too general and obscure, and do not contain any adequate comments to
actually understand.

Any information, or pointers to information would be appreciated.

                                        Thank you very much,
                                                Amit.
=============================================================================
Amit Margalit (Software Support - Digital Israel)    And also a Linux addict!
InterNet: amit@tavis.enet.dec.com "I prefer hard cash! If you can't scratch a
window with it, I don't accept it." -- Rooster (The HitchHiker's Guide)
=============================================================================

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

From: ericy@cais.cais.com (Eric Youngdale)
Subject: Re: MAP_SHARED?
Date: 19 Jul 1994 04:18:29 GMT

In article <1994Jul18.202815.1937@dcs.warwick.ac.uk>,
Beeblebrox <M.S.Ashton@dcs.warwick.ac.uk> wrote:
>d90-cka@dront.nada.kth.se (Carl Karlsson) writes:
>
>>I'm trying to compile a few of my SunOS apps on my linux box at home,
>>and now I'm experiencing some problems with mmap.
>>I'm trying to mmap(...MAP_SHARED, RDWR...), but all I get is EINVAL.
>                                  ^^^^
>That's your problem: not MAP_SHARED.
>

>>When will I be able to do this?
>
>I dunno, I'd like this too for the work I'm doing at the moment - I was
>thinking about investigating FreeBSD to see if that was able to provide this
>feature.  I was going to mail Linus and whinge but mmap.c wasn't attributed
>to Linus and I couldn't find a usercode to complain at.  Perhaps someone
>could poke Linus in this direction:
>
>*Read/Write mapping of files please Linus*

        While this sounds simple in principle, it is actually a fairly 
complicated matter to implement something like this.  When you use 
MAP_SHARED and PROT_WRITE, it means that changes to the image in memory 
need to get written back to disk, and that everyone is working from the same
file.  Thus we would have to fix things so that the pages are initially 
R/O, but an attempt to write to the page will change the page to R/W and 
the corresponding buffer headers will be marked dirty.  When the buffers 
are written back to disk, it means that the pages in the page tables 
should once again be marked R/O (so we will once again get the fault if 
you attempt to write to them).


        Stephen Tweedie and I and several other people have discussed some
of these issues, but this was put on the back burner for a while.  It is 
certainly doable, and will eventually get done.

-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: c9108932@sage.newcastle.edu.au (Simon Ferrett)
Subject: patch 31 breaks kmem ps *sob*
Date: Tue, 19 Jul 1994 12:21:04 GMT

In case nobody noticed....

patch 31 contains some stuff in it which seems enough to 
break kmem ps again (recompiling them doesnt help either)

I get negative RSS's and %MEMS way bigger than 100% ...
unfortunately I dont know enough about the kernel guts 
to attempt to figure out whats been changed or how to
mod the kmem stuff to fix them, so out goes this
plea to someone who does know enough about them to
possibly scrap together a patch for the kmem ps utils


        thanks......

-- 
Simon Ferrett - c9108932@cs.newcastle.edu.au
Floccinaucinihilipilification: the action or habit of estimating as
=============================  worthless.

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

From: edgar@uwast.astro.wisc.edu (Dick Edgar)
Subject: Re: gcc and Linux (compiling)...
Date: 19 Jul 1994 13:23:58 GMT

In article <Ct5p0s.Luq@ns1.nodak.edu> evers@plains.NoDak.edu (Dwight M Evers) writes:
<       I was wondering if when you ( I in this case ) compile a program 
<under Linux if the statement:
<
<
<#include       <stdio.h>
<
!!main()
<{
!!      int value1, value2, sum;
<       value1 = 10;
<       value2 = 20;
<       sum = value1 + value2;
<
<       printf(" the sum of %i and %i is equal to %i",value1,value2,sum);
<       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<}
<               is valid. I keep getting run errors. how do you compile 
<and use gcc under Linux? I looked in the FAQ and I did what was told. Not 
<a thing happens. I works under all other compilers I use.
<
<       Please specific about the steps you take in getting this to work.

I added two things to your program, which I noted above with !! lines.
Some C compilers may assume these things [undeclared variables are ints;
code not in a function is in main()] but I think it's good programming
practice to be explicit.  The C compiler on a Decstation 5000 wouldn't eat
your program, either.

I compiled & ran it under Linux with the commands

        cc -o testprogram testprogram.c
        testprogram

where 'testprogram.c' is the name I gave your program.  Just as a
nicety, you might want a '\n' inside the quotes in your printf statement
at the end.

=========
Richard J. Edgar  (edgar@uwast.astro.wisc.edu)
University of Wisconsin--Madison, Department of Astronomy
"An astrophysicist is someone who sees something working in practice,
and wonders whether it will work in principle." -- Harvey Liszt

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

From: jwshin@nitride.EECS.Berkeley.EDU (Jinwoo Shin)
Subject: Kernel Hacker's Guide
Date: 19 Jul 94 04:57:10 GMT

Will there be an upgrade to the Kernel Hacker's Guide by LDP? The draft of it
reads very nicely and it is quite interesting. Due to lack of kernel 
information, other than the source itself :) notices like myself would 
appreciate further efforts on this project. BTW, I wonder if anyone is going
to translate that German Linux kernel book.
-- 
Jinwoo Shin                             jwshin@eecs.berkeley.edu
System Administrator                    
Berkeley Sensor and Actuator Center

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

From: mlindsey@nyx10.cs.du.edu (Mark R. Lindsey)
Crossposted-To: comp.mail.pine
Subject: term adaptation of pine?
Date: 19 Jul 1994 07:54:20 -0600

Has anyone adapted the pine IMAP code to work under term (the slip-esque
unix<->unix serial line protocol) yet? If not, and you've got a couple of
minutes to do it, I'd really like to see it working.

This would allow easy function as an offline mail reader for, at least, home
unix users.

-- 
Mark R. Lindsey          [][] The South Georgia Digital Research Institute
mlindsey@nyx10.cs.du.edu [][] http://nox.cs.du.edu:8001/~mlindsey 

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

Crossposted-To: comp.lang.c
From: buschman@slsvirt (Andreas Buschmann US/END3 60/1/29 #71409)
Subject: Re: Linux Performance Enhance ?
Date: Tue, 19 Jul 94 13:59:01 GMT

Jos Horsmeier (jos@and.nl) wrote:
: 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 ...

Ok, what is it?

I would appeciate a pointer to the/a description.

                                Tschuess
                                        Andreas

-- 
#include <stddisclaimer.h>

 /|)    Andreas Buschmann
/-|)    SEL Stuttgart US/END

        buschman@lts.sel.alcatel.de             # we have a new domain address
        buschman@us-es.sel.de                   # our old domain address

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

Crossposted-To: comp.os.linux.help,comp.os.linux.misc
From: hoang1@litwin.com (Ted Hoang)
Subject: traceroute
Date: Tue, 19 Jul 1994 04:08:00 GMT

Could someone tell me how to compile traceroute program for linux? I have
source code for Sun OS and couldn't make it.

Thanks in advance
Ted Hoang
Email:hoang1@litwin.com
-- 
===========================================================================
Ted Hoang               Email:hoang1@litwin.com         Tel: (713) 267-7122
                                                        Fax: (713) 267-7908
Litwin Process Automation

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

From: jli@mtu.edu (Jianfang Eve Li)
Subject: create /dev/audio
Date: 19 Jul 1994 10:20:54 -0400

I had a Soundblaster Card, and installed the lastest SlackWare with 
the soundcard option. 
Linux can recognize my sound card but I can not play music through it, 
since there is no /dev/audio file. 

My question is : how can I create such a file under Linux? 

Any suggestions are greatly appreciated. 


eve 
jli@cs.mtu.edu
 

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

From: kevinl@bruce.cs.monash.edu.au (Kevin Lentin)
Subject: Re: gcc and Linux (compiling)...
Date: 19 Jul 1994 14:26:12 GMT

Dwight M Evers (evers@plains.NoDak.edu) wrote:
>       I was wondering if when you ( I in this case ) compile a program 
> under Linux if the statement:


> #include      <stdio.h>

What is this below? Just a block? Not a function or anything?
> {

What type are these?
>       value1 = 10;
>       value2 = 20;

What type is sum? where is it declared?
>       sum = value1 + value2;

The rest is ok but in light of the rest, is a little meaningless.

>       printf(" the sum of %i and %i is equal to %i",value1,value2,sum);
>       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> }
>               is valid. I keep getting run errors. how do you compile 
> and use gcc under Linux? I looked in the FAQ and I did what was told. Not 
> a thing happens. I works under all other compilers I use.

Then you need to throw away those compilers. They are broken. The above
code is really sick.

>       Please specific about the steps you take in getting this to work.

Add in a main() before the block, make the value's ints and then make the
sum an int and then I do:
gcc file.c -o file
and then when I run file I get this:
 the sum of 10 and 20 is equal to 30

-- 
[==================================================================]
[ Kevin Lentin                   |___/~\__/~\___/~~~~\__/~\__/~\_| ]
[ kevinl@bruce.cs.monash.edu.au  |___/~\/~\_____/~\______/~\/~\__| ]
[ Macintrash: 'Just say NO!'     |___/~\__/~\___/~~~~\____/~~\___| ]
[==================================================================]

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

From: hpulley@uoguelph.ca (Harry C Pulley)
Subject: Re: create /dev/audio
Date: 19 Jul 1994 14:39:02 GMT

Jianfang Eve Li (jli@mtu.edu) wrote:
: I had a Soundblaster Card, and installed the lastest SlackWare with 
: the soundcard option. 
: Linux can recognize my sound card but I can not play music through it, 
: since there is no /dev/audio file. 

: My question is : how can I create such a file under Linux? 

: Any suggestions are greatly appreciated. 

Get the sound tools kit 2.0 package.  There is a script in it which creates all
the sound devices.  I think it is snd-kit.2.0.tar.gz or something like that on
tsx-11.

Harry
--
<:-{}   hpulley@uoguelph.ca       |This message released|It takes all kinds,
 \      Harry C. Pulley, IV       |to the PUBLIC DOMAIN.|and to each his own.
==================================+=====================|This thought in mind,
Stay away from the DOS side, Luke!|Un*x don't play that.|I walk alone.

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

From: kjetilho@ifi.uio.no (Kjetil Torgrim Homme)
Subject: Re: fact on linux vs sun
Date: 19 Jul 1994 14:38:36 GMT

+--- Supat Faarungsang:
| I test sun4.1.1 on sparcII vs linux1.1.29 on 486dx-50 and found that
| in all features linux has greater performance speed is about 10%
| faster on linux in all kind of programs.

If you want to bring out Sun's forte, try to run a math problem with a
dataset twice the size of RAM while you do normal interactive work. I
think you will find response time is much better on the Sun. Suns are
better at handling many users, at least compared to an ISA-bus Linux
box.


Kjetil T.

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

From: David L Miller <dlm@cac.washington.edu>
Crossposted-To: comp.mail.pine
Subject: Re: term adaptation of pine?
Date: Tue, 19 Jul 1994 09:25:08 -0700 (PDT)


I have successfully run Pine/IMAP over a term link (SunOS<->Ultrix) without
any major difficulty.  What kind of problems are you having? 

|\ |  |\/|  David L. Miller    dlm@cac.washington.edu  (206) 685-6240
|/ |_ |  |  Software Engineer, Pine Development Team   (206) 685-4045 (FAX)
University of Washington, Networks & Distributed Computing, JE-20
4545 15th Ave NE, Seattle WA 98105, USA

On 19 Jul 1994, Mark R. Lindsey wrote:

> Has anyone adapted the pine IMAP code to work under term (the slip-esque
> unix<->unix serial line protocol) yet? If not, and you've got a couple of
> minutes to do it, I'd really like to see it working.
> 
> This would allow easy function as an offline mail reader for, at least, home
> unix users.
> 
> -- 
> Mark R. Lindsey          [][] The South Georgia Digital Research Institute
> mlindsey@nyx10.cs.du.edu [][] http://nox.cs.du.edu:8001/~mlindsey 
> 
> 

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

From: choltje@ux1.cso.uiuc.edu (Christian Holtje)
Subject: Media Vision: Pro Video Board
Date: 19 Jul 1994 18:09:45 GMT

I just bought a Media Vision: Pro Video Board, and wondering if anyone
has any clues what would be necessary to take advantage of this board
in linux.  If anyone can point me in the right direction, I would be willing
to write a driver and such for this, but I have NO clue as to how to code
for X windows (which would be the place to write the app, no?).  I've
only written diddly-sh*t CS project programs, and would be interested in
writing something interesting.

        -Doc

-- 
    ---     ---     ---   -      -  -  -   ---  -----  docwhat@uiuc.edu
   +   -  +    -  +      +      +  -  +  -   +   -    CS major at Illinois
  *   +  *    +  *      *  +   *  +*+*  +*+*+   *    --- finger me at ---
 ****     ***     ***   **  **   *  *  *   *   *    choltje@ux1.cso.uiuc.edu

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

From: ddb@terrabit.mn.org (David Dyer-Bennet)
Subject: Re: obsolete routing request
Date: Tue, 19 Jul 1994 05:02:14 GMT

root@stevie.isar.muc.de (Eckard Kopatzki) writes:

>In article <30abmj$ask@nyx10.cs.du.edu>, kkoller@nyx10.cs.du.edu (captain sarcastic) writes:

>> I knew that if I kept upgrading the kernel, eventually I'd have to 
>> upgrade something else.  syslogd (i think) is breaking with a message 
>> "obsolete routing request" when I first boot.

>Kernel routing tables have changed somewhere around 1.1.20, so your ifconfig
>and route commands are outdated. Get the new net-0.32d-NET3 (or so ...). It's
>somewhere in the sunacm directory tree on sunsite.

I'm getting the same message running 1.13 with older net stuff, so
it's considerably before .20 if that's what my problem is.

I'll try newer net stuff and see....

-- 
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: bdesp@wpi.edu (B. Despres)
Subject: drivers for removable media HD?
Date: 19 Jul 1994 14:32:37 GMT

hello.  i am trying to put linux up on some sort of removeable media drive,
specifically either the bernoulli 150 meg, the syquest 270 meg, or the teac
250 meg (although if you happen to know of something else that works well,
i'm quite open to suggestions).  the problem is, all of these seem to
require drivers to work, even though i am only looking at the IDE models.
so basically what i am looking for is either some brand of removeable media
IDE drive (over 100 meg) that doesn't require special drivers, or linux
drivers for such a thing...
if you have any information, please share it with me.
oh, and please reply via email, since i am on at 1200 bps currently (the
14.4 died a few days ago... ack.)

thank you.
 
 
 
                                        - ben despres
                                          bdesp@wpi.wpi.edu


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


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