HDTenEightyP/NetNews huggingface dataset:
From: s37732v@vipunen.hut.fi (Markus Juhani Aalto)
Subject: Best way to get Device names?
Organization: Helsinki University of Technology, Finland
Distribution: comp.sys.amiga.programmer
Date: 21 Aug 92 18:12:13


Hi!

I have a little problem with my program which scans through DOS list
to get device, volume etc.. names. It's supposed to be KS2.04 or
greater code.

Here is a piece of my code
---------------------------------
dlist = LockDosList( types );
    if( dlist ) {
        while( (dlist = NextDosEntry(dlist, types)) != NULL  ) {
            new_node = (struct Node *)AllocMem(sizeof(struct Node),
                    MEMF_ANY|MEMF_CLEAR);
            if(new_node) {
                if( SetNode_Name(new_node,dlist) == FALSE ) {
                    FreeMem((void *)new_node,sizeof(struct Node));
                    RemoveList( list );
                    UnLockDosList( types );
                    return( NULL );
                }

                if( dlist->dol_Type == DLT_DEVICE) {
                    if( IsFileSystem( new_node->ln_Name ) == FALSE ) {
                        FreeMem((void *)new_node,sizeof(struct Node));
                    }
                    else {
                        AddNodeAlpha(list, new_node);
                    }
                }
                else {
                    AddNodeAlpha(list, new_node);
                }
            }
        }
    }
UnLockDosList( types );

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

Okey. So i'm scanning through list with types. And when I encounter
device (DLT_DEVICE) I check if it's something like "DF1:", "DH0:"
etc.. This filters devices like "PRT:" and "CON:". 

Well, then comes a little problem. This IsFileSystem seems to check
devices in such a way that devices which haven't been accessed before 
now load info memory. For example

My device list before running my code:

   DF0:, DF1:, DH0:, DH1:, DH2:, RAM:

and after.

   DF0:, DF1:, DH0:, DH1:, DH2:, RAM:, DI0:, DI1:

So how could I check devices without forcing them to load into memory?

Thanks!
--


**************************************************************************
*         Markus Aalto              | Helsinki University of Technology  *
*                                   |                                    *
*  EMail: s37732v@vipunen.hut.fi    | Faculty of Electric Engineering    *
*  Fax:   358-0-8746991 (Sometimes) |                                    *
*                                   | Undergraduate in Computer Science  *
**************************************************************************
        
Newsgroups: comp.sys.amiga.programmer
From: kxs5829@ultb.isc.rit.edu (K.X. Saunders )
Subject: SAS/C and GCC questions
Originator: kxs5829@ultb
Organization: Rochester Institute of Technology
Date: Thu, 20 Aug 1992 10:55:03 GMT

	Does SAS/C provide a flock() (a BSD system) call?  If not, is there
a way to get a FileHandle from a file descriptor so I could use LockRecord?

	Regarding GCC, is there a utility to convert an AmigaDOS object file
to a.out that GCC 2.2.2 will understand?  I would like to link rexxvars.o and
rexxglue.o.

	- Kyle

-- 
+-"Remember, [MS]DOS is sort of a UNIX deviant already" - dmoscny@piglet.-----+
|    // Only /\          kxs5829@ultb.isc.rit.edu                 cincinatti. |
| \ //      /--\MIGA     kyle@nick.csh.rit.edu                    oh.us       |
| \X/ SQLdb - $40 rdbms  Rochester Institute of Technology                    |
From: kehlet@kehlet.adsp.sub.org (Jesper Kehlet)
Newsgroups: adsp.sw,comp.sys.amiga.programmer
Subject: Exception handler example
Date: 13 Aug 92 01:54:14 GMT
Distribution: adsp,world
Organization: Compos Mentis Software Systems
X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith


Somebody told us some time ago, that he wanted to do a utility that made it
possible for 68010+/6888x programs to be run on a 68000.

It could be done via the exceptions 4 and 11, illegal instruction and
LINE-F emulation.

In search of a good way to remove the exception handler again, I came up
with the 4-character identification, that can be put in a long word.

I need some pros and cons, since I am now thinking of doing this other task
myself, so decode it, look at the source and tell me what you think, i.e.
your opinion.

If you are interested in just using it as-is, it sets up a division by zero
exception handler for the purpose of trapping exception #5, which doesn't
really have to break the system...

It is *NOT* mathematically correct, since simple math tells us, that it IS
illegal, but I have reasoned with the fact, that the closer the denominator
goes to zero, the higher the result of the division -- the numerator does
really matter, except for going against zero from the positive or negative
side -- I use the numerator to determine the sign of the operation.


-- 
     Jesper Kehlet, Compos Mentis Software Systems -- A Kind Of Magic

        (uunet|pyramid|rutgers)!cbmvax!cbmehq!cbmden!kehlet!kehlet
             cbmehq!cbmden!kehlet!kehlet@cbmvax.commodore.com

  Since I am the president of this company, I speak not only for myself!
From: shane@peeker.uucp (Shane R. McCarthy)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Ordering SAS/C Version 6
Date: 22 Aug 1992 02:35:58 GMT
Organization: Not an Organization
X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith

In article <1992Aug21.214811.25128@ccu.umanitoba.ca> kaarts@ccu.umanitoba.ca (Kenneth John Aarts) writes:

---Stuff Deleted---

> >|> As long as SAS has an office in a state, they must charge sales tax there
> >|> (I think that's the law ... but soon all the mail order places will charge
> >|> tax in all states).

---Stuff Deleted---
 
> What about Canadian residents?  Thanks,


I just received my upgrade notice from SAS.  Canadian residence must add
$15 to cover shipping.  I'll probably send mine to Detroit and pay 4% sales
Tax. 

-- 
Shane McCarthy                  Please forward mail to
Windsor, Ont.                   cs.uwindsor.ca!jabba!peeker!shane
From: philip@think.com (Philip Mucci)
Newsgroups: comp.sys.amiga.programmer
Subject: Which books for Amiga 3000 assembly info?
Date: 17 Aug 1992 13:57:22 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: lugh.think.com

	Hi all,

	This semester I plan on doing a research project in real-time
computing. As a start, I need a good book on 68030/68882 assembly language.
Secondly, I need a book that describes assembly level access to the
A3000(32-bit) chipset. Ideally, I'd like to achieve some parallelism here.
Are there any books out there that fit the bill?

	Thanks for any info,

	-phil
From: Tony-Preston@cup.portal.com (ANTHONY FRANCIS PRESTON)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Getting rid of requesters
Date: Tue, 18 Aug 92 07:20:30 PDT
Organization: The Portal System (TM)

Try adding the code:
 
 long oldval;
 struct Process *me;

 me = (struct Process *)FindTask(0);
 oldval = me->pr_WindowPtr;   /* save old value */
 
 me->pr_WindowPtr = -1;   /* disable all requestors */

 ....[do whatever you want...]...

 me->pr_WindowPtr = oldval;   /* put the old value back */

 This disables the requestor and returns error/cancel.  For example if
 you write to a disk and the disk is full, you will get an error back
 on the write.  You will not get the system requestor.
Newsgroups: comp.sys.amiga.programmer
From: eugene@uts.EDU.AU (R Rosen)
Subject: Re: problem with movea.l
Organisation: University of Technology, Sydney, Australia
Organization: University of Technology, Sydney, Australia
Date: Thu, 20 Aug 1992 12:38:42 GMT

jpr@sun4.lri.fr (Jean-Pierre Riviere) writes:


>Do you know of an assembler which would allow me
>to have a move and not a movea when the destination
>is an address register ?
>I can't do that neither with a8k nor Ncode.

	No assembler will allow you to do that simply because the
move command doesn't allow the destination to be address register.
Its not assembler it's the hardware restriction. You just have to
live with it.

-- 
+----------------------------------------------------------------------+
| eugene@amdahl.ccsd.uts.edu.au     |     eugene@macnab.mpce.mq.edu.au |
+----------------------------------------------------------------------+
From: mks@cbmvax.commodore.com (Michael Sinz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: ToolMaker and CATS
Date: 20 Aug 92 01:16:18 GMT
Reply-To: mks@cbmvax.commodore.com (Michael Sinz)
Organization: Commodore, West Chester, PA

Frederick.Theilig@bbs.oit.unc.edu (Frederick Theilig) writes:
>
>     I've been trying to get information reguarding the exact price for
> the Native Developer's Update Kit and this mysterious thing called
> ToolMaker.  Since I didn't get any replies, I decided to call CATS
> directly.  Before I could get half a dozon words out, the person asked
> me if I was a developer.  Well, I said no.  
>
>     She immediately told me that I had to call my local dealer and they
> couldn't help me at all.

Well, CATS is a developer support function/department.  It is not set up
to deal with non-developers.  (It does not have the staff or budget)
The Native Developer Kit (4 disk of great stuff) is available from
"Department C" here at Commodore.  You will need to mail your order in.
The cost for the NDK is $20 (plus $3 for shipping in the USA)

>     Now, wait a minuete.  Am I to believe that this stuff is available 
> only to registered developers, or do they only tell the price of it to
> developers?  This is the second time I've called CATS, and it's the
> second time I've gotten no help whatsoever.  First time I called, the
> person I contacted never heard of the native developer's disks.

Many things are available only to registered developers, including
direct support from CATS.  If you wish to become a developer, contact
CATS for an application.  If you just wish to obtain things such as
the NDK, contact "Department C".

/----------------------------------------------------------------------\
|      /// Michael Sinz  -  Senior Amiga Systems Engineer              |
|     ///                   Operating System Development Group         |
|    ///   BIX:  msinz      UUNET:  mks@cbmvax.commodore.com           |
|\\\///                     Luck sometimes visits a fool,              |
| \XX/                      but never sits down with him.              |
\----------------------------------------------------------------------/
From: jmrg9881@uxa.cso.uiuc.edu (Jon Reid)
Newsgroups: comp.sys.amiga.programmer
Subject: Ordering SAS/C Version 6
Date: 20 Aug 92 19:50:37 GMT
Distribution: usa
Organization: University of Illinois at Urbana

I just got my upgrade order form today.  There's one puzzling thing on it,
and that's the sales tax.  Am I to understand that I need to tack on
Illinois state tax (since I live in Illinois), even though SAS is in North
Carolina?

(The form says NOTE: Do not add tax on software shipped to the following
states: AL, WI.)
-- 
Jon Reid    j-reid@uiuc.edu    GEnie: THE.REIDS
"He is no fool who gives what he cannot keep to gain what he cannot lose."
Newsgroups: comp.sys.amiga.programmer
From: kaarts@ccu.umanitoba.ca (Kenneth John Aarts)
Subject: Re: SAS/C V6.0 Announcement
Organization: University of Manitoba, Winnipeg, Canada
Date: Wed, 19 Aug 1992 18:44:42 GMT

Is it at all possible to get an academic discount on the upgrade?

Thanks,
Ken
Newsgroups: comp.sys.amiga.programmer
Subject: Re: console device raw mode
From: jbickers@templar.actrix.gen.nz (John Bickers)
Date: 17 Aug 92 11:36:38 PST
Organization: TAP, NZAmigaUG

Quoted from <paulk.15lq@terapin.com> by paulk@terapin.com (Paul Kienitz):

> There's no reason you can't read one character at a time with Read(),
> or use asynchronous dos packets.  Descending to console.device is

    Except performance.
--
*** John Bickers, TAP, NZAmigaUG.        jbickers@templar.actrix.gen.nz ***
***    "Radioactivity - It's in the air, for you and me" - Kraftwerk    ***
Newsgroups: comp.sys.amiga.programmer
From: smneyln@ariel.lerc.nasa.gov (Michael Neylon)
Subject: Re: A needed utility for the Amiga...
News-Software: VAX/VMS VNEWS 1.41    
Organization: NASA Lewis Research Center
Date: 18 Aug 1992 10:43 EST  

In article <1992Aug17.190139.7358@ugle.unit.no>, mortene@Lise.Unit.NO (Morten Eriksen) writes...
[this first part is mine...]
>>software (worthwhile of course) that IBMs and Macs have, EXCEPT an mathematical
>>equation editor!  There is TeX, but that is too slow/large/bulky for most
>>people.  I would like to know if anyone is planning on, working on, or has
>>released any such program.  The features that I would like to see are:
> 
>I was thinking of doing such a utility this summer, but just as the holiday was
>getting close, I read in some UK Amiga-mag that sharewareprogrammers got very,
>very few registrations on their products. As I was going to release my equation-
>editor as shareware I got cold feet, and instead started coding a eurodemo...
> 
>Could somebody out there please let us know if it is possible to make any
>money on releasing (good) shareware? (I know there are several guys on the net
>who have coded brilliant sharewareprograms, Jonathan Potter, Charlie Gibbs, Eric
>Schwartz (well, not exactly coded..) etc etc).
> 
>Morten

First, let me say that although no program like this exists, I seriously
doubt that any commerical groups are going to be investing in this type of
thing, else we would have had it way back when.  So the responsibility falls
into the hands of the PD/shareware programmers, if they choose to accept it.
I sure others know that they probably could have used this program at some
point, so the need definely exists.

Anyway, if you were considering writing, then by all means, proceed to!
if only for your own good.  I understand that people dont like developing
programs without getting proper credit, and thus Shareware came into
being.  If you feel that you can work on it, but dont need anything in
return, release it as FreeWare.  If you want a bit more, take out a few
options, and release it as shareware.  That choice is up to you.

If you do release as shareware, you definitely want to remove/disable a 
few key features in order to make any money off of it.  If you are
producing one with a gfx interface, removing the save option would be
useless (i could just grab the screen if needed.).  Alternatively, I would
remove stuff like....
	greek letters
	subscripts and superscripts beyond the first one
	
I cant think of others off hand, but you get the drift.  Features that 
dont necessarily show the power of the program, but are usually required for
acceptable output.

I encourage you to continue work on the program.  Many of us are counting
on you...
Michael Neylon   aka Masem the Great and Almighty Thermodynamics GOD!
      //         | Senior, Chemical Engineering, Univ. of Toledo
  \\ // Only the |   Summer Intern, NASA Lewis Research Center
\  \X/   AMIGA!  |          smneyln@ariel.lerc.nasa.gov              /
 --------+ How do YOU spell 'potato'?  How 'bout 'lousy'? +----------
    "Me and Spike are big Malcolm 10 supporters." - J.S.,P.L.C.L
From: jesup@cbmvax.commodore.com (Randell Jesup)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: How to force a reboot in 2.04
Date: 21 Aug 92 23:14:23 GMT
Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
Organization: Commodore, West Chester, PA

bmccnnll@unix1.tcd.ie (Barry McConnell) writes:
>I replaced my copy of GVP's FaaastPrep (tm) with HD-Toolbox, and the
>SCSI_DEVICE_NAME ToolType. But I just wish someone would write a good-looking
>RDB editor!

	Just wait a bit... ;-)  We know quite well that HDToolbox is ugly
under 2.0 (it was written to look similar to 1.3 Preferences).

>>I dread using HDToolBox, PERIOD.  It is the most dangerous piece of software
>>I have on my hard disk.

	All partitioning software is dangerous by definition.

>Yeah, I have to agree it does have some serious problems. Like calling 
>AllocMem() with a MEMF_FAST argument, and proceeding to *directly DMA* into
>that location - ouch! Throw the Mask out the window, bypass my own program
>DMAfix, end up with a garbled RDB, politely ask the user to click "Save
>changes to drive", which erases everything _without warning_ - yes, this
>happened to me when I was unlucky enough to own an A590 with v6.0 ROMs, and
>an accelerator with non-DMA memory.

	That's actually a flaw in the A590 driver.  It doesn't know to check
to see if the memory is in 24-bit space or not.  At some point you should
expect this to be revised....  In the meantime you could hack around it
(or rather add it to your hack - just catch 

>Fortunately, the problem doesn't occur with the GVP Series II, or the latest
>A590/A2091 controllers (or the commercial version of DMAfix...), but I am
>still a little annoyed...

	If it really doesn't happen in the latest A590/A2091, then get a
new set of roms (the 6.6 roms only work with the 'A' WD part - I don't remember
if they have the "force dma for >16M" fix (I don't think it was in there
yet when those were released)).

-- 
"Rev on the redline, you're on your own; seems like a lifetime, but soon it's
 gone..."  Foreigner
-
Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
{uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com  BIX: rjesup  
Disclaimer: Nothing I say is anything other than my personal opinion.
From: kehlet@kehlet.adsp.sub.org (Jesper Kehlet)
Newsgroups: adsp.sw,comp.sys.amiga.programmer
Subject: Re: Exception handler example
Date: 18 Aug 92 19:14:29 GMT
Distribution: adsp,world
Organization: Compos Mentis Software Systems
X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith

In article <epang.713927939@sfu.ca> epang@fraser.sfu.ca (Eugene Pang) writes:
> epang@fraser.sfu.ca (Eugene Pang) writes:
> >You should also remind people that it's only for the DIVU/DIVS divide by
> >zero exceptions.
> 
> I meant to say DIVU.w & DIVS.w.  *sigh*  That's what happens when the
> air conditioning doesn't work, and the ceiling fan seems to generate more
> heat.  But I digress...I'll post a complete divide by zero handler
> later this evening to alt.sources.amiga, if my brain doesn't melt. 

Since I no longer subscribe to alt.*, could you please post it here, too?
Or maybe e-mail it to me?


-- 
     Jesper Kehlet, Compos Mentis Software Systems -- A Kind Of Magic

        (uunet|pyramid|rutgers)!cbmvax!cbmehq!cbmden!kehlet!kehlet
             cbmehq!cbmden!kehlet!kehlet@cbmvax.commodore.com

      As long as I speak for myself, my employees can do that, too...
Newsgroups: comp.sys.amiga.programmer
From: wild@nessie.cs.id.ethz.ch (Markus Wild)
Subject: Re: SAS/C and GCC questions
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Fri, 21 Aug 1992 00:20:27 GMT

In article <1992Aug20.105503.13129@ultb.isc.rit.edu> kxs5829@ultb.isc.rit.edu (K.X. Saunders ) writes:
>	Regarding GCC, is there a utility to convert an AmigaDOS object file
>to a.out that GCC 2.2.2 will understand?  I would like to link rexxvars.o and
>rexxglue.o.

Use hunk2gcc, which is also included in the 2.2.2 distribution. You'd say

  hunk2gcc rexxvars.o rexxglue.o

then rename the generated object files (they don't have too intuitive names..)
to whatever you like.

-Markus
-- 
Markus M. Wild    -  wild@nessie.cs.id.ethz.ch  |  wild@amiga.physik.unizh.ch 
Vital papers will demonstrate their vitality by spontaneously moving
from where you left them to where you can't find them.
From: abs0@coos.dartmouth.edu (Kelvin Leung)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: A needed utility for the Amiga...
Date: 18 Aug 92 01:25:39 GMT
Organization: Dartmouth College, Hanover, NH

simon@ivem.uucp (Simon Lee) writes:
>>Honestly speaking, if the registration fee is >=us$30 and it supports
>                                               ^^

>So you'd be willing to pay $1,000,000 for a shareware utility?  Sure!  I'll
>write whatever you want :)

Oopsy!!! :-P             

You know what I mean... *embarassed look*

>-Simon

>-- 
>*   Simon Lee              *   Microscopy and Imaging Resource          *
>*   simon@ivem.ucsd.edu    *   Intermediate Voltage Electron Microscopy *
>*   sulee@ucsd.edu         *   UC San Diego, Dept. of Neuroscience      *
>-------------------------------------------------------------------------

Yours Sincerely,
Kelvin


                                            ____________________________
 __________________________________________/ Undergraduate, Class of 94 \___ 
 ____________________________________________________________/_____\________
| Kelvin     /   Internet: Kelvin.Leung@Dartmouth.edu       ({o   o})       |
|   Leung   /       or     abs0@Coos.Dartmouth.edu        <  #  ^  #  >     | 
|__________/_______________________________________________(vvvvvvvvv)------|
| "Unless someone like you cares a whole |  Aaahhhh!!! It's a beast...      |
|  awful lot, nothing is going to get    |    ... no, no... it's a doll...  |
|  better.  It's not."                   |       ... what is it?            |
|               -- Dr. Seuss (The Lorax) | either way... it's here!!!       |
 ________________________________________^__________________________________
From: marko@jjmhome.UUCP (Mark Moore)
Newsgroups: comp.sys.amiga.programmer
Subject: Wanted: Multiline string gadget.
Date: 17 Aug 92 14:36:28 GMT
Organization: JJ Software, Westboro, MA

The subject says it all.  I would like a string gadget that handles multiple
lines and allows the use of the up and down arrows.

Please send Suggestions, Documentation references, or Code to me.  I don't
normally read this group, but I will summarize responses...

Thanks

Mark

harvard!m2c!jjmhome!marko
From: abs0@coos.dartmouth.edu (Kelvin Leung)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: A needed utility for the Amiga...
Date: 17 Aug 92 21:03:27 GMT
Organization: Dartmouth College, Hanover, NH

mortene@Lise.Unit.NO (Morten Eriksen) writes:

>I was thinking of doing such a utility this summer, but just as the holiday was
>getting close, I read in some UK Amiga-mag that sharewareprogrammers got very,
>very few registrations on their products. As I was going to release my equation-
>editor as shareware I got cold feet, and instead started coding a eurodemo...

>Could somebody out there please let us know if it is possible to make any
>money on releasing (good) shareware? (I know there are several guys on the net
>who have coded brilliant sharewareprograms, Jonathan Potter, Charlie Gibbs, Eric
>Schwartz (well, not exactly coded..) etc etc).


>Morten

Honestly speaking, if the registration fee is >=us$30 and it supports
intuition, 2.0 3-D outlook, various printer drivers, etc.  I am willing
to pay!!!

(come on, people, back me up... we need more utilities!!! :)

Yours Sincerely,
Kelvin


                                            ____________________________
 __________________________________________/ Undergraduate, Class of 94 \___ 
 ____________________________________________________________/_____\________
| Kelvin     /   Internet: Kelvin.Leung@Dartmouth.edu       ({o   o})       |
|   Leung   /       or     abs0@Coos.Dartmouth.edu        <  #  ^  #  >     | 
|__________/_______________________________________________(vvvvvvvvv)------|
| "Unless someone like you cares a whole |  Aaahhhh!!! It's a beast...      |
|  awful lot, nothing is going to get    |    ... no, no... it's a doll...  |
|  better.  It's not."                   |       ... what is it?            |
|               -- Dr. Seuss (The Lorax) | either way... it's here!!!       |
 ________________________________________^__________________________________
From: strat@matt.ksu.ksu.edu (Steve Davis)
Newsgroups: comp.sys.amiga.programmer
Subject: DR2D - HELP!
Date: 12 Aug 1992 17:58:48 -0500
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

Where on Internet can I find some example source code for creating
and examining IFF DR2D files?

Stratocaster

-- 
  Steve Davis  |    Contact me at ...            | The Boarding House BBS!
               | Internet:  strat@cis.ksu.edu    | 9600 baud (v.32/v.42)
               | FidoNet:    Steve @ 1:295/3     | America: 913-827-0744
     ***** Drugs are bad.  BAD.  Like frying eggs. - Mike Peercy *****
Newsgroups: comp.sys.amiga.programmer