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 Apr 94 19:13:11 EDT
Subject:  Linux-Development Digest #644

Linux-Development Digest #644, Volume #1         Tue, 19 Apr 94 19:13:11 EDT

Contents:
  ioperm(1) - run user programs with io permissions, patch 1 [Linux] (Olaf Titz)
  DOS & Win FTP and TELNET (to LINUX of course) SW needed (DavidPelo)
  Driver for S3 864? (Thomas Zedler)
  implement filesystem (Thomas Scheuermann)
  Token-Ring Driver (Kai-Uwe Kriewald)
  DOS EMU - Alt key not working (Joseph P DeCello III)
  Re: Massive Serial Overruns in 1.1.5 (root@jaxnet.com)
  howto kernel ? (Laurent Chavey)
  Re: How come no discussion of linux on Pentiums? (Eckehard Stolz)
  Re: DOS EMU - Alt key not working (Chris Curtis)
  Re: -= good programmer's editor for X? (Eckehard Stolz)
  Why do I get seg faults under Linux & not Ultrix? (Simon Cocking)
  Networking deterioriates in 1.1.5 (Whistler)
  Wierd buffer errors in 1.1.5 (Whistler)
  Re: Kernel Panic  (swapper) killed (Andreas Zoufal)
  >>Linux on PPC(601) in c (Riku Saikkonen)
  Re: What is an SDK? (Brandon S. Allbery)
  Re: XFree86 program search (Garrett D'Amore)
  Re: Math lib woes(Slackware 1.2) (Michael Perzl)

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

From: olaf@bigred.ka.sub.org (Olaf Titz)
Crossposted-To: alt.sources
Subject: ioperm(1) - run user programs with io permissions, patch 1 [Linux]
Date: 17 Apr 94 10:01:49 GMT

Archive-name: ioperm.1.patch1
Submitted-by: Olaf Titz <olaf@bigred.ka.sub.org>

This patch for ioperm(1) as posted some time ago adds the environment
variable IOPERM, whose value is taken from the "permissions" field in
the config file and which will be passed to the called program. This
way the called program can check if it has the proper permissions.

Olaf

--- 1.2 1994/03/28 00:34:48
+++ ioperm.c    1994/04/17 09:45:50
@@ -1,6 +1,6 @@
 /*
    ioperm(1)  -  run program with ioperm and gid set
-   $Id: ioperm.c,v 1.2 1994/03/28 00:34:48 olaf Exp $
+   $Id: ioperm.c,v 1.3 1994/04/17 09:45:37 olaf Exp $
 */
 
 #include <stdio.h>
@@ -146,6 +146,7 @@
                        printf(">%s=%s,%s\n", tag, path, perm);
 #endif
                        fclose(cf);
+                       setenv("IOPERM", perm, 1);
                        setupperm(perm);
                        return path;
                }
@@ -168,5 +169,5 @@
        printf("ruid=%u, euid=%u, rgid=%u, egid=%u\n", getuid(), geteuid(),
               getgid(), getegid());
 #endif
-       success(execve(pn, &argv[1], envp), "exec");
+       success(execve(pn, &argv[1], environ), "exec");
 }
--- 1.1 1994/03/15 23:57:46
+++ ioperm.1    1994/04/17 09:45:48
@@ -1,6 +1,6 @@
 .\" -*- nroff -*-
 .ig
-$Id: ioperm.1,v 1.1 1994/03/15 23:57:46 olaf Exp $
+$Id: ioperm.1,v 1.2 1994/04/17 09:45:37 olaf Exp $
 ..
 .TH IOPERM 1 "Mar 15, 1994" Linux
 .SH NAME
@@ -46,6 +46,12 @@
 .SH DIAGNOSTICS
 Every system call is tested for error return. In case of any error,
 the program prints a description and exits with exit code 1.
+.SH ENVIRONMENT
+Programs called via
+.BR ioperm
+have an environment variable
+.IR IOPERM
+set which reflects the I/O permissions as given by the config file.
 .SH FILES
 .BR /etc/ioperm.conf
 specifies which programs to run with which permissions.
-- 
___     olaf@bigred.ka.sub.org - uknf@rz.uni-karlsruhe.de
__ o      <a href="http://rzstud1.rz.uni-karlsruhe.de/~uknf/">click</a>
__/<_     also: s_titz@ira.uka.de - uknf@dkauni2.bitnet - praetorius@irc
_)>(_)_________  "now i find that most of the time love's not enough in itself"

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

From: davidpelo@aol.com (DavidPelo)
Subject: DOS & Win FTP and TELNET (to LINUX of course) SW needed
Date: 19 Apr 1994 00:53:02 -0400

If you can point me to a "reasonably" priced source I'd be forever in your
debt.
Machines connected via 3C509s.
PS: I have microsoft's tcp/ip running and can ping either way.

Thanks...

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

From: zedlcebi@w350zrz.zrz.tu-berlin.de (Thomas Zedler)
Subject: Driver for S3 864?
Date: 19 Apr 1994 09:36:24 GMT

I have in mind to buy a miro crystal 20SD (PCI) and use this card with Linux (X-System). Does anybody know whether there is a driver beeing develloped or is
the S3-chip compatible to an earlier version? Is there a chance to 
download a driver working with that card?
Thanx

_______
Thomas Zedler
Computer Science
Technical University Berlin
Germany
zedlcebi@w350zrz.zrz.tu-berlin.de

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

From: ths@ai-lab.fh-furtwangen.de (Thomas Scheuermann)
Subject: implement filesystem
Date: 19 Apr 1994 12:39:34 +0200


Hi

I want to implement another filesystem in the Linuxkernel.
For this I need some information about the kernelfunctions
I have to use.
Can you give me some information for this project ?

Thanks

Thomas
______________________________________________________________________

____  ____/   /       /     _______/     | Thomas Scheuermann
     /       /       /     /             |
    /       ______  /   _______  /       | ths@ai-lab.fh-furtwangen.de
   /       /       /            /        |
__/     __/     __/   _________/         | Black Forest Germany

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

From: kriewald@rz.fh-hannover.de (Kai-Uwe Kriewald)
Subject: Token-Ring Driver
Date: Tue, 19 Apr 1994 11:10:24 GMT

Is there a token-ring driver available. Which hardware
does it support (IBM, SMC, TI-Chipset)?

Kai-Uwe Kriewald / ftpadmin@rz.fh-hannover.de
FTP-Administrator Fachhochschule Hannover, Germany

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

From: decello@discovery.uucp (Joseph P DeCello III)
Subject: DOS EMU - Alt key not working
Date: 19 Apr 1994 11:55:25 GMT


I have dos emulator running well under a virtural console while I'm
in Xwindows.  I tried to "edit" the config.sys, but I couldn't get
out of it, since Alt key doesn't do anything.  I have rawkeyboard
defined.  I'm using 0.5xx, I didn't have this problem with .049x

Any ideas??


--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Joseph P. DeCello III  **Computer Asst.**  Email:   decello@cad.msu.edu
Michigan State University             CPP  Phone:        (517) 355-9582
   Dept. of Campus Park and Planning       hours:  MWF 8-11,2-4 EDT

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

From: root@jaxnet.com
Subject: Re: Massive Serial Overruns in 1.1.5
Date: Mon, 18 Apr 1994 18:52:58 GMT

In article <2opi9oINNnag@charnel.ecst.csuchico.edu>,
Robert Bauer <rbauer@ecst.csuchico.edu> wrote:
>In article <1994Apr16.180317.11578@excaliber.uucp>,
>Joel M. Hoffman <joel@rac1.wam.umd.edu> wrote:
>
>>This may actually be an old problem.  I'm still running 0.99.13, and
>>every so often mgetty on one of my serial ports starts taking up 80%
>>of the CPU.  These may be connected because they're both abnormal
>>serial behaviour that only manifests itself after the system has been
>>up a while.
>
>Actually, I have heard of this happening before; the most recent kernel
>version which exhibited similar behavior was one of the early 1.0 
>patchlevels. (1.0.3?)  However, this is the first time I have observed
>such behavior on my machine, and I've been tracking Linux for some time
>now, on and off since 0.98, and continuously since 99.11.  My system has
>been left up for days at a time with nothing other than an occasional
>serial port overrun in the log files, and then only under heavy system
>load.
>
>Robert
>rbauer@ecst.csuchico.edu
>

The tty overrun problem was caused by either 1.0.3 or 1.0.4 and is fixed
in either 1.0.6 or 1.0.7.  Sorry I don't have the exact patch levels but,
I saw a similar thread a week or two ago and I know the problem is fixed
at 1.0.7 and up!
--
Karl Renaut
root@jaxnet.com

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

From: chavey@balin.cis.udel.edu (Laurent Chavey)
Subject: howto kernel ?
Date: 19 Apr 1994 14:41:36 GMT

where is the HOWTO hacker guide to linux.
Could not find it on sunsite, in the INDEX file.
thank you.


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

From: stolz@Informatik.TU-Muenchen.DE (Eckehard Stolz)
Subject: Re: How come no discussion of linux on Pentiums?
Date: 19 Apr 1994 14:45:16 GMT


Hi There !

I read somewhere that FSF is not supporting Pentium(tm) optimization in the GCC
due to a NDA ? Is this true or does GCC can produce Pentium-optimized code ?

cu

Eckehard Stolz
==================================================================
Eckehard Stolz
Internet : stolz@informatik.tu-muenchen.de
           stolz@fiffi.sta.sub.org
Linux-TUM: linux@informatik.tu-muenchen.de
 

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

From: cmcurtis@xmission.com (Chris Curtis)
Subject: Re: DOS EMU - Alt key not working
Date: 19 Apr 1994 08:12:07 -0600

Joseph P DeCello III (decello@discovery.uucp) wrote:

: I have dos emulator running well under a virtural console while I'm
: in Xwindows.  I tried to "edit" the config.sys, but I couldn't get
: out of it, since Alt key doesn't do anything.  I have rawkeyboard
: defined.  I'm using 0.5xx, I didn't have this problem with .049x

: Any ideas??

Same problem here.  Under WP5.1/dosemu 0.49, left ALT worked for dos, right 
ALT switched virtual consoles.  No dice now.  What happened?
-- 
cmcurtis@xmission.com                   Erst kommt das Fressen,
Professional Fool in the Rain           dann kommt die Moral.



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

From: stolz@Informatik.TU-Muenchen.DE (Eckehard Stolz)
Subject: Re: -= good programmer's editor for X?
Date: 19 Apr 1994 14:52:39 GMT


> Hi.

> Are there any good programmer's editors for X - not term-like ports?

There is a very good editor under X especially for C/C++ programmers because it
has a built-in C/C++browser and a C-interpreter !

It is called XCoral-2.1 and is available at:

ftp.informatik.tu-muenchen.de
/pub/comp/X11/contrib/clients/xcoral

Home site of XCoral is

ftp.inria.fr  (/pub/X11/../clients - sorry, don't know exactly)

You can also try xwpe, a B*rland-IDE-clone for terminal and X11 (although it is
in a very early stage !)

ftp.informatik.tu-muenchen.de
/pub/comp/os/linux/local/devel

Warning: German manual-pages :-)

Some people also like the aXe-Editor available in the directory
/pub/comp/X11/contrib/clients/aXe 

hope it helps

cu

Eckehard
==================================================================
Eckehard Stolz
Internet : stolz@informatik.tu-muenchen.de
           stolz@fiffi.sta.sub.org
Linux-TUM: linux@informatik.tu-muenchen.de

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

From: sgc@daneel.rdt.monash.edu.au (Simon Cocking)
Subject: Why do I get seg faults under Linux & not Ultrix?
Date: 19 Apr 1994 14:55:41 GMT

To developers:

Is there a known problem malloc'ing memory under Linux?  I am developing an
application undder Linux at the moment, and came across a segmentation fault
which shouldn't have happened.  I uploaded the code to an Ultrix machine and
compiled it there, and it runs faultlessly (as it should :)  It's basically
parsing a section of a configuration file, like this:

# Service provider information
services
#   Provider    Indial Number   Password
    pgr1        123-4567        passwd
    pgr2        234-5678        passwd
    pgr3        345-6789        passwd
end

The function which I'm having trouble with looks like this:
(I'm compiling with gcc v2.5.8 under Linux, and gcc v2.5.6 under Ultrix..)

typedef struct service_s
{
    char    *provider,
            *indial,
            *password;
    struct service_s    *next_service;
} service_t;

service_t       *service_head;

void parse_services(FILE **handle)
{
    char        buffer[256],
                *token;
    service_t   *list_ptr;

    while (!feof(*handle))
    {
        /* Should get all details for one service provider,
           unless there's something weird in the config file. */
        fgets(buffer, 256, *handle);
        if (buffer[0] == '#' ||
            buffer[0] == '\n')
        {
            continue;
            /* Skip blank lines or comments */
        }
        token = strtok(buffer, " \t\n");
        if (strcmp(token, "end") == 0)
        {
            return;
        }
        /* Allocate memory for this service provider. */
        if (service_head == NULL)
        {
            service_head = (service_t *)malloc(sizeof(service_t));
            list_ptr = service_head;
        }
        else
        {
            list_ptr -> next_service = (service_t *)malloc(sizeof(service_t));
            list_ptr = list_ptr -> next_service;
        }
        list_ptr -> provider = (char *)malloc(strlen(token));
        strcpy(list_ptr -> provider, token);

        token = strtok(NULL, " \t\n");
        list_ptr -> indial = (char *)malloc(strlen(token));
        strcpy(list_ptr -> indial, token);
/*****  ^--- Segmentation fault occurs during this strcpy *****/

        token = strtok(NULL, " \t\n");
        list_ptr -> password = (char *)malloc(strlen(token));
        strcpy(list_ptr -> password, token);
    }
}

I've no idea why this is segfaulting.. gdb reveals little to explain
anything except where the segfault occurs, but it works fine under Ultrix
anyway (using gcc also).

Any ideas??

Thanks in advance,
Simon.
Oh, and P.S.  Sorry this got so long.. :)
-- 
Simon Cocking
sgc@daneel.rdt.monash.edu.au

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

From: slouken@talbot.cs.ucdavis.edu (Whistler)
Subject: Networking deterioriates in 1.1.5
Date: Tue, 19 Apr 1994 15:16:31 GMT


        I'm running Linux 1.1.5 with a SLIP connection.

Here's the problem.

        When I establish a connection, everything works fine.
After several hours of heavy network use, the network connection
bogs down, even though the physical link is fine.
Data seems to slowly stop being sent to the modem.
After a while, networking grinds to a halt.  If I try to ping
or ftp anywhere, I can see that no data is ever sent to the modem.
I am running update (bdflush), so I don't think it is a problem
with unflushed buffers.

I did get lots of messages in /usr/adm/messages telling me that
there were ICMP checksum failures, though I am not sure if this
is related, because last night I only got one of those messages
(the last time my network hung.)

As far as I can tell, this is unique to the 1.1.? kernels.
I can boot up in the 1.0.x kernels and ftp to infinity with
no problems! :)

Thanks!

        -Sam


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

From: slouken@talbot.cs.ucdavis.edu (Whistler)
Subject: Wierd buffer errors in 1.1.5
Date: Tue, 19 Apr 1994 15:21:01 GMT


        Every so often, since I upgraded to Linux 1.1.5,
I find in my syslog the following error:

Weird - unlocked, clean and not uptodate buffer on list 2

When I shutdown, whole screenfuls of these errors occur
as well.

See ya!

        -Sam


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

From: zoufal@ZDITR1.NoSubdomain.NoDomain (Andreas Zoufal)
Crossposted-To: comp.os.linux.help,de.comp.os.linux
Subject: Re: Kernel Panic  (swapper) killed
Date: 19 Apr 1994 17:37:53 GMT

In article <2ovqk6$o29@hpunsca.canada.hp.com>, chuckm@canada.hp.com (Chuck Munro) writes:
|> Jochen Franz (franz@emserver.ee.TU-Berlin.DE) wrote:
|> > While trying to install slackware 1.2.0 I experienced several Kernel Panics
|> > at various stages, but never managed to finish the installation.
|> 
|> > A typical error message was:
|> > general protection: 0000
|> > ... register info deleted...
|> > Kernel Panic: Trying to free swapper memory space
|> > In swapper task -not syncing
|> 
|> I experienced exactly the same problem at random intervals while trying
|> to install, and also while the system was running.  It turned out that I
|> had a marginal memory SIMM which DOS and/or the BIOS pre-boot test could
|> not detect.
|> 
|> It took a lot of fiddling around to find the error this past weekend  :-(
|> 
|> Chuck.
|> 

My Problem was a CD-ROM drive on the SCSI Bus. Turning off the drive eliminates
this problem (but I don't know why :-} ).

Andi

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

Subject: >>Linux on PPC(601) in c
From: riku.saikkonen@compart.fi (Riku Saikkonen)
Date: Tue, 19 Apr 94 18:14:00 +0200

>  Should newer versions of Linux be writen in c++?????????

No - I don't have the HD space for C++!

-=- Rjs -=- riku.saikkonen@compart.fi

 * OLX 2.1 TD * Back Up My Hard Drive? I Can't Find The Reverse Switch!


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

From: bsa@kf8nh.wariat.org (Brandon S. Allbery)
Subject: Re: What is an SDK?
Date: Tue, 19 Apr 1994 14:50:20 GMT

In article <1994Apr19.070235.13030@mnemosyne.cs.du.edu>, colin@nyx10.cs.du.edu (Colin Plumb) says:
+---------------
| I noticed on c.o.l.announce that some folks are trying to build this thing
| called a Software Developer's Kit for commercial SW houses who want to
| port to Linux.
| Now, I can see the need for such a thing on an OS as poorly documented
| in the standard release as Messy-DOS or Windoze.  But does anyone have
| any dea what someone would want that exists but isn't in, say, a full
| SLS source release?  I realize thatLinux has a larger code/docs ratio
+------------->8

An index, perhaps?

The primary advantage of a *good* SDK is that it makes information readily
accessible without having to grep the kernel source (or application source or
etc.; recently I found myself using the JNOS/Linux source to help diagnose an
iBCS networking problem because it was easier for me to find things in it than
it was in /usr/src/linux...)  Sure, as the ultimate reference the source code
is important, but a developer doesn't want to have to study the source code or
grep for the right include file just to find out e.g. which of the many
variants on statfs() Linux uses...

++Brandon
-- 
Brandon S. Allbery         kf8nh@kf8nh.ampr.org          bsa@kf8nh.wariat.org
The FUDs at Microsoft are shouting "Kill The Wabi!"

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

From: garrett@theseus.sdsu.edu (Garrett D'Amore)
Subject: Re: XFree86 program search
Date: 19 Apr 1994 15:53:05 GMT

Tommy Boy (tfm@tiger.acs.appstate.edu) wrote:
: Hi all.. Just posting this cause I can't seem to find one
: browsing around the net.. Does anyone know of a
: communications package for XFree86?  Something like a
: graphical package like Procomm Plus for Windows.  Thanks!


Check out Seyon.  I'm using it right now as I type this message.  I know
there is a program called xcomm, but I don't have any experience with
it.

=================================================================
Garrett D'Amore                 |     garrett@sciences.sdsu.edu
Network Programmer/Analyst      |     SDSU College of Sciences
SDSU Computer Science Major     |     Author of "vtprint"
=================================================================

Ask me about Linux, the free 32-bit Unix-like OS for PCs!

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

From: mperzl@haensel.gsf.de (Michael Perzl)
Subject: Re: Math lib woes(Slackware 1.2)
Date: 19 Apr 1994 14:16:26 GMT

In article <mcfarlan.1.00100B70@rubidium.service.indiana.edu>, mcfarlan@rubidium.service.indiana.edu (Reuben A. McFarland) writes:
|> 
|> I'm either being really stupid or I have a math lib problem.
|> Somebody please tell me which.
|> 
|> little program:
|> -------------------------------
|> #include <math.h>
|> void main( void )
|> {
|>     double num;
|>     num = cos( 2.0 );
|> }
|> -------------------------------
|> attempt to compile it thus:
|> -------------------------------
|> cc -lm -o test test.c 
|> /tmp/cca000571.o: Undefined symbol _cos referenced from text segment
|> -------------------------------
|> 

You have to compile your program the following way:

cc -o test test.c -lm

Libraries always come at the end. By the way, never name a program
test, which could interfere with some shell builtin test functions
(just a tip).

Hope that helps

Michael

=================================================================
Michael Perzl                         email: mperzl@gsf.de
Institut fuer Strahlenschutz           Tel.: ++49 (0)89 3187-2801
AG Risikoanalyse                        Fax: ++49 (0)89 3187-3363
Ingolstaedter Landstr. 1,  85764 Oberschleissheim
GSF-Forschungszentrum fuer Umwelt und Gesundheit, GmbH Neuherberg
=================================================================

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


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