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

Linux-Development Digest #930, Volume #1         Wed, 20 Jul 94 02:13:05 EDT

Contents:
  Re: Linux Performance Enhance ? (Rob Janssen)
  GS261 driver for HP 520. (Kevin Ruland)
  Re: MAP_SHARED? (Dorwin Shields)
  Re: Multi-session (Photo-CD) support. (Eberhard Moenkeberg)
  Re: Starting New DIP (Bart Kindt)
  the world needs a HPIb driver for linux (488,GPIB) (Corey Sweeney)
  Re: [Q] Bas Laarhoven's (author of ftape) address? (Rob Janssen)
  Request:  XView Filemanager Clone (Dave Hinz)
  Will any SCSI drive work? (Lee J. Silverman)
  Re: MAP_SHARED? (DorwinS)
  HELP!!! *After quiting X etc... MEMOR doesn't seem to be getting freed* (Sharad Thacore)
  Xfree86: increase pallate? (Chris Csanady)
  Re: create /dev/audio (Sarr J. Blumson)
  /proc fs bug? (Rainer Zimmermann)
  Re: create /dev/audio (David Myers)
  Re: Patchlevel 31 breaks UMSDOS [FIX] (Matt Day)

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

Crossposted-To: comp.lang.c
From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: Linux Performance Enhance ?
Reply-To: pe1chl@rabo.nl
Date: Tue, 19 Jul 1994 17:31:20 GMT

In <1994Jul19.135901.19202@lts.sel.alcatel.de> buschman@slsvirt (Andreas Buschmann US/END3 60/1/29 #71409) writes:

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

Just page back through this thread...

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

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

From: kevin@rodin.wustl.edu (Kevin Ruland)
Subject: GS261 driver for HP 520.
Date: 16 Jul 1994 23:18:59 GMT

Is there anyone out there with an HP520?  I doubt it, but the HP 550C
driver for ghostscript will drive the 520.

I've made a couple of hacks to gs to make a 520 mono driver.  If anyone
wants it, I'll send the patch.

If anyone has technical information for the 520 that will help customize
the driver, send them along

Kevin Ruland
kevin@rodin.wustl.edu

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

From: parprods@hellcat.ecn.uoknor.edu (Dorwin Shields)
Subject: Re: MAP_SHARED?
Date: 19 Jul 1994 22:16:53 GMT

   I was about to post a question about this to the net--Imagine my suprise
when I saw that my question had been answered before I got a chance to
post!--anyone know where I can find g++ binaries for Sparc Solaris 2.3??
--I too was trying to used the shared pages for a distributed
  mandelbrot program I've written--It's pretty fast--but the
picture is all messeed up because of the non-shared space. (I was forking
processes and writing to the shared space)--can anyone recommend someother
from of IPC?--I tried using signals first but I could never get linux
to respond to more than one SIGCHLD.

Dorwin

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

Date: Sun, 17 Jul 1994 12:49:17 +0200
From: Eberhard_Moenkeberg@p27.rollo.central.de (Eberhard Moenkeberg)
Subject: Re: Multi-session (Photo-CD) support.


Hello Eric Youngdale and all others,

on 16.07.94 Eric Youngdale wrote to All in USENET.COMP.OS.LINUX.DEVELOPMENT:

EY>    I caught the tail end of a thread about Photo-CD and
EY> multi-session support.  It has been on my todo list to add support for
EY> this, but the priority is fairly low for me since I have other things I
EY> should do first.  I did not catch whether someone has already come up with
EY> patches to support this - if so, could someone direct me to them.

The Matsushita/Panasonic driver (sbpcd) handles multi-session CDs. It is
fairly simple, but you must have XA support before.

I currently simply substitute the "read block 16" request with the
equivalent block number of the last session. This should get
managed by the isofs routines (only there is known why we read that
block), and we need something like an ioctl CDROM_TELL_LAST_SESSION
for letting the isofs routines know the right block number.

I think this should get defined by yourself, Eric.

EY>    If no one has come up with patches yet, this would be a good
EY> project for someone who is just dying to try their hand at kernel
EY> programming.  It should be relatively easy, and I can provide some
EY> insights as to the various things you will need to do to protect system
EY> integrity.

Nice chance to dive deep. :-)

If it is done, it will be time to define a way to obtain the XA subheader
field together with 2048-byte XA blocks through the file system. This is
necessary for true multi media applications.
Really "variable" blocksizes (2048 ... 2352) would be a major step...

Greetings ... Eberhard


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

From: bart@dunedin.es.co.nz (Bart Kindt)
Subject: Re: Starting New DIP
Date: Wed, 20 Jul 1994 19:30:28 GMT

In article <2vrftq$6dk@doorway.invlogic.com> mmclagan@homebase.linux.org (Mike McLagan) writes:
>From: mmclagan@homebase.linux.org (Mike McLagan)
>Subject: Starting New DIP
>Date: 11 Jul 1994 13:02:50 GMT


>Hi,

>   I'm going to start working on a new DIP.  (I need it for a specific purpose)
>and I'd like to gather ideas and specs from people.

>   If you have any thoughts about features of DIP that would make it more 
>usable for you, please let me know.  I'd like to draw up a spec for it within
>the week or so.  I'll post the results here once I have it built.  

>   Even the most mundane suggestion is welcome.  What do you want in the 
>script language?  

>   My own use is load balancing.  But I intend to support multiple slip lines
>in 1 config file, and hopefully a single daemon on the slip server.  

>   In addition to this, I'd like to gather together scripts from virtually any
>service provider.  Please take out your account name and password, and email
>it to me with a description of what's on the other end.  Server setups are also
>welcome.  

>   I'm sure it could be extended to cover PPP, or any other protocol that
>ppl wanted.

>   Mike was here...

>Oh, please email your suggestions and such to dip@linux.org  :)

>--
>Mike.McLagan@Linux.Org, here to support the linux operating system,
>and promote it's use worldwide.  

If you can build a program that can handle multiple dial-IN lines (SLIP) I 
will be your first customer!  I have been messing arround for more than 2 
months, day and night to get a multiline dial-in server running. I am now 
using the program SLIPLOGIN, which works fine, except that the it often not 
discovers that the CD line is dropped. This could be a Kernel problem.

Also, don' call it DIP.  Start fresh and give it a new name.

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

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

From: corey@bbs.xnet.com (Corey Sweeney)
Subject: the world needs a HPIb driver for linux (488,GPIB)
Date: 19 Jul 94 08:36:03 CST

I have searched for a hpib (gpib/IEEE-488) driver for linux, and a long time
ago i found one on mcsun.eu.net under
/os/linux/PEOPLE/arl/current/hp-ib/.building-material/net2/dev

the files were fhpib.c.z, hpib.c.z & such.  The files are long gone now, but i
need a hpib driver for linux.  I have also found many other people who have
been searching (unsuccessfully) for one.  Can anyone develop one?

Corey Sweeney
corey@bbs.xnet.com

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

From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: [Q] Bas Laarhoven's (author of ftape) address?
Reply-To: pe1chl@rabo.nl
Date: Tue, 19 Jul 1994 11:26:12 GMT

In <GREINER.94Jul18210657@sugar.NeoSoft> greiner@NeoSoft (Kevin Greiner) writes:

>I'm presently having problems with ftape 1.13b.  I keep getting
>a "timer expired" error.  I've turned on the trace messages and
>it appears to be a deadlock between the wait_segment and 
>ftape_ready_wait routines.

>I'd like to contact Bas Laarhoven, the author of ftape,
>but get an unknown host with bas@vimec.nl (His address in the ftape.lsm)
>Does anyone have Bas' internet address?

That is not an internet host, but is *is* his email address.
When your system can't handle MX records (apparently it can't), try
sending your mail to a major site that can do it.

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

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

From: daveh@texlin.minmet.mcgill.ca (Dave Hinz)
Subject: Request:  XView Filemanager Clone
Date: Tue, 19 Jul 1994 14:48:53 GMT

Hi:

The last time I contacted SUN I was informed that there was no plan to
release further XView tools to the public--I think only Textedit and a
Sunterm clone are presently available.  Since a XView newsreader is alos
available, as well as a Mosaic version, doesn't it make sense to the
body of LINUX users to clone a FILEMANAGER since SUN won't release it.
I know that most people are using MOTIF now but since many of us are
unwilling to cough up the dough to pay for it, a Filemanager Clone would
be a nice addition to the present state of affairs--I mean a real one 
with drag and drop capabilities.  The source code for Textedit would be
a good place to start since it has the basic Drag-and-Drop protocols
present.  There should also be some components from the xfilemanager that
could help with the Icons and layout.  The interface to the filesystem
seems to be the major piece missing.  Anyone willing to take up the 
challenge to bring Linux one step closer to a nice and useable GUI equipped
OS??

D.H.


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

From: lee@netspace.students.brown.edu (Lee J. Silverman)
Subject: Will any SCSI drive work?
Date: 20 Jul 1994 02:43:26 GMT


        Perusing "Advanced Systems" magazine today, I noticed a lot of
companies selling large external SCSI disks, and SCSI RAID's.  Since
these are SCSI devices, can Linux users just plug them into our SCSI
cards and expect them to work?  Or does each device need a specific
driver?

Just a thunk.


--
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: dorwins@aol.com (DorwinS)
Subject: Re: MAP_SHARED?
Date: 19 Jul 1994 22:44:05 -0400

In article <30fk6l$52s@sun.cais.com>, ericy@cais.cais.com (Eric Youngdale)
writes:

I wanted to use the shared memory with MAP_ANON-- and it didn't give me an
error but it doesn't seem to work correctly--is this not supposed to work
or
did I just not do it right--I've checked the pointers (printing them out)
and the forked  children are writing to the correct location.
I'm using MAP_ANON and MAP_SHARED with fd set to -1 and I'm using
PROT_READ and PROT_WRITE-- if this won't work can someone recommend
another way to send data from child to parent?
DTS


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

From: sharad@resmel.bhp.com.au (Sharad Thacore)
Subject: HELP!!! *After quiting X etc... MEMOR doesn't seem to be getting freed*
Date: 20 Jul 1994 00:07:22 GMT


Hi,
    I have just bought a PC with 16MB of ram.  I started linux and then
    X.  When X was running my system  was using about 6.5MB according to
    "top" and "free".  Then I compiled a program with a large static
    array and gcc used lots or memory ...... in total my system was using
    15.5MB.  Then the compilation finished. The 15.5MB remained in use, however,    accourding to both "top" and "free".  Then I quit X and still 15.5MB    
    appeared to be in use.  What's going on.  Aren't "top" and "free" 
    a reliable way of checking memory usage??? Or maybe I am missing something?
    
    I would really appreciate any HELP what so ever.  I don't really want
    to have to buy another 16MB of ram.
    
    Could you please e-mail me any replies (as well as posting them if you
    like) as I have unreliable access to usenet.

Thanks,
Sharad.


________________________________________________________________________________

Sharad Thacore                            e-mail : sharad@resmel.bhp.com.au
BHP Research 
Melbourne Laboratories
245 Wellington Road, Mulgrave             Phone  : +61-3-5667265
Victoria 3170                                    : +61-3-5607066
AUSTRALIA                                 Fax    : +61-3-5616709



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

From: ccsanady@iastate.edu (Chris Csanady)
Subject: Xfree86: increase pallate?
Date: 20 Jul 94 02:53:16 GMT

I know that implementing true 24-bit graphics in Xfree would be quite
a task, but how about just increasing the size of the colormap for
now?  Maybe from 256 to 4096 or something.  Is this possible?

-chris(ccsanady@iastate.edu)
-- 

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

From: sarr@citi.umich.edu (Sarr J. Blumson)
Subject: Re: create /dev/audio
Date: 19 Jul 1994 15:36:27 GMT
Reply-To: sarr@citi.umich.edu

In article <30goi6$2j2@nermal.cs.uoguelph.ca>, hpulley@uoguelph.ca (Harry C
Pulley) writes:
|> Jianfang Eve Li (jli@mtu.edu) wrote:
|>
|> : My question is : how can I create such a file under Linux? 
|> 
|> 
|> 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.
|> 
If you got the kernel source tree with your slackware, the script you need
is in the sound kit readme file in the drivers/sound directory (or close by,
I'm speaking from memory),

-- 
========
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: zimmerm@Informatik.Uni-Marburg.de (Rainer Zimmermann)
Subject: /proc fs bug?
Date: 19 Jul 1994 23:17:41 GMT


Hoping it's not too dumb a question:   ;)

Is it possible that there's something wrong with the proc file system?
When reading /proc/<pid>/statm (which ps -m seems to do), I get size==rss 
for all programs except dosemu (I have 'only' 8MB, so most probably not 
everything is present in memory), and also a different rss value than in
/proc/<pid>/stat, other than the KHG states.

ps -m looks like this:

                                  vvv       vvv
  PID TT MAJFLT MINFLT  TRS  DRS SIZE SWAP  RSS SHRD  LIB  DT COMMAND
    1 co     88     89    8   72  304    0  304  232  256   8 init
  870  3    102     98  168  184  624    0  624  588  296   6 kermit
   17  1    144   1436  152  268  636    0  636  372  272  14 -tcsh
    4 co     12     15    0   16  220    0  220  204  212   2 /etc/update
   16 co      3     12    0   16  216    0  216  200  208   2 /bin/syslogk on
... etc


In the kernel source, I don't see an obvious error.

Any comments?

--rainer


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

From: dem@skyline.dayton.oh.us (David Myers)
Subject: Re: create /dev/audio
Date: 20 Jul 1994 00:39:33 GMT

Jianfang Eve Li writes:

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

   cd to /dev and run "MAKEDEV audio".  That's it.

--
David Myers                                   dem@skyline.dayton.oh.us
Dayton, Ohio                                          dem@meaddata.com

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

From: mday@park.uvsc.edu (Matt Day)
Subject: Re: Patchlevel 31 breaks UMSDOS [FIX]
Date: Wed, 20 Jul 1994 03:23:09 GMT

In article <Ct7AE9.Fn7@ucdavis.edu> slouken@cs.ucdavis.edu (Sam Oscar Lantinga) writes:
>       The file linux/fs/msdos/mmap.c from the UMSDOS distribution
>contains references to share_map(), which no longer exists in patchlevel 31.
>It should be an easy fix, but I don't know where to start.

This patch gets UMSDOS 3.0 running on Linux 1.1.31:

--- fs/msdos/mmap.c-    Tue Jul 19 16:13:06 1994
+++ fs/msdos/mmap.c     Tue Jul 19 17:36:14 1994
@@ -19,13 +19,6 @@
 #include <asm/system.h>
 #include <linux/msdos_fs.h>
 
-extern int share_page(struct vm_area_struct * area, struct task_struct * tsk,
-       struct inode * inode, unsigned long address, unsigned long error_code,
-       unsigned long newpage);
-
-extern unsigned long put_page(struct task_struct * tsk,unsigned long page,
-       unsigned long address,int prot);
-
 extern void file_mmap_free(struct vm_area_struct * area);
 extern int file_mmap_share(struct vm_area_struct * from, struct vm_area_struct * to,
                                unsigned long address);
@@ -33,33 +26,20 @@
 /*
        Perform the mapping of an adresse in memory
 */
-static void msdos_file_mmap_nopage(
-       int error_code,
+static unsigned long msdos_file_mmap_nopage(
        struct vm_area_struct * area,
-       unsigned long address)
+       unsigned long address,
+       unsigned long page,
+       int error_code)
 {
        struct inode * inode = area->vm_inode;
        unsigned int clear;
-       unsigned long page;
        int pos;
        long gap;       /* distance from eof to pos */
 
        address &= PAGE_MASK;
        pos = address - area->vm_start + area->vm_offset;
 
-       page = __get_free_page(GFP_KERNEL);
-       if (share_page(area, area->vm_task, inode, address, error_code, page)) {
-               ++area->vm_task->mm->min_flt;
-               return;
-       }
-
-       ++area->vm_task->mm->maj_flt;
-       if (!page) {
-               oom(current);
-               put_page(area->vm_task, BAD_PAGE, address, PAGE_PRIVATE);
-               return;
-       }
-
        clear = 0;
        gap = inode->i_size - pos;
        if (gap <= 0){
@@ -78,30 +58,19 @@
                if (cur_read != need_read){
                        printk ("MSDOS: Error while reading an mmap file %d <> %d\n"
                                ,cur_read,need_read);
-                       free_page (page);
-                       oom(current);
-                       put_page(area->vm_task, BAD_PAGE, address, PAGE_PRIVATE);
-                       return;
                }
        }
-       if (!(error_code & PAGE_RW)) {
-               if (share_page(area, area->vm_task, inode, address, error_code, page))
-                       return;
-       }
        if (clear > 0){
-               #if 1
+#if 1
                        memset ((char*)page+PAGE_SIZE-clear,0,clear);
-               #else
+#else
                        unsigned long tmp = page + PAGE_SIZE;
                        while (clear--) {
                                *(char *)--tmp = 0;
                        }
-               #endif
+#endif
        }
-       if (put_page(area->vm_task,page,address,area->vm_page_prot))
-               return;
-       free_page(page);
-       oom(current);
+       return page;
 }
 struct vm_operations_struct msdos_file_mmap = {
        NULL,                   /* open */

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


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