HDTenEightyP/NetNews huggingface dataset:
From: mkoch@amisys.UUCP (Mike Koch)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Arexx Help.
Date: 15 Apr 92 14:29:04 GMT
Organization: AMiSYS Consulting

In article <1992Apr14.102415.1@acad2.alaska.edu> asccr@acad2.alaska.edu writes:
>Well, I have tried programming in ARexx, many a time.  Yet, whenever I use
>the RX command, to run a file, it says it cannot be found.  I am using 2.0,
>with the built in ARexx port. So, I don't see why I am having many problems.  I
>set an ASSIGN REXX: sys:rexxc to tell it where the arexx program is, but, no
>matter how I try, it never seems to be able to find it, error 5/1 I believe,
>progrma not found.  Soo, Help, anyone?

ARexx searches for your programs/scripts first in the current directory, then
in the assigned REXX: directory, if it exists.  Of course, you could always
supply an explicit path to your script on the command line, i.e.:

   rx sys:s/rexx/myscript.rexx

I keep all my Arexx scripts in "DH0:s/arexx/", to which the REXX:  assignment
is pointed.  SYS:Rexxc is where the ARexx utility programs are kept under
2.04.

Unless your scripts are in your current directory or in your assigned REXX:
directory, a command line of "rx <scriptname>" won't work.

   -Mike
--

=============================================================================
Mike Koch      {uunet,rutgers}!cbmvax!rehab1!amisys!mkoch     CI$: 70017,2677
From: mohawk@ccwf.cc.utexas.edu (Mohawk Dave)
Newsgroups: comp.sys.amiga.programmer
Subject: if you use g++, please respond to this:
Date: 7 Apr 92 00:21:22 GMT
Organization: The University of Texas at Austin, Austin TX


Could anyone who has had success using g++ on the amiga *please* send me
the output of a "list" of their directory/ies containing g++ and its
support files?  I want to verify that I have everything inthe right
place and that everything is the same version (will check file size),
because even though my g++ seems to work, the executables don't, but
C programs from gcc do work.  Thanks. 

Newsgroups: comp.sys.amiga.programmer
From: danb@gaff.physci.psu.edu (Dan Babcock)
Subject: Re: Interrupts--please help...
Organization: Penn State University, Physical Sciences
Date: Tue, 14 Apr 1992 00:59:49 GMT

In article <1992Apr13.120914.32901@uservx.plk.af.mil> galetti@uservx.plk.af.mil writes:
>
>I just can't seem to get program flow to get to the interrupt routine.  The
>routine works fine as long as an interrupt is not generated.  I can abort the 
>program by pressing the left mouse button and everything works ok.  But, as 
>soon as I try to abort the program by generating an interrupt, everything 
>locks up and I have to reboot.  I generate the interrupt by releasing the 
>"RETURN" key that I pressed to run the program.  The releasing of the key
>generates a keyboard interrupt.

Most likely you're forgetting to clear the interrupt (by writing to 
INTREQ).

-- Dan
From: prowed@sci.kun.nl (Patrick Atoon)
Newsgroups: comp.sys.amiga.programmer
Subject: gcc and 1.3
Summary: Is there a working 1.3 version of gcc?
Keywords: gcc, gnu-c
Date: 9 Apr 92 10:20:55 GMT
Reply-To: prowed@sci.kun.nl (Patrick Atoon)
Organization: University of Nijmegen, The Netherlands

I recently got all the files out of the ab20 /pub/amiga/languages/gnu-c
directory, and put them together on my harddisk in the right order.

However, gcc refuses to start up, saying "cannot find mathieeesingbas.lirary".
Well, ofcourse not! I have 1.3 at home! Is there a 1.3 runnable gcc somewhere
out there? If so, where can I get it? If not, why, or better yet, how can I
make it myself? (although I must warn you that I am not able to compile gcc
at home, considering its size ;-) ).

Thanks in advance,

Patrick Atoon
University of Nijmegen
The Netherlands
From: Dale.Schmitz@ivgate.omahug.org (Dale Schmitz)
Newsgroups: comp.sys.amiga.programmer
Subject: I must be kidding!
Date: 12 Apr 92 00:24:00 CST
Reply-To: dale.schmitz@ivgate.omahug.org
Organization: 
Followup-To: comp.sys.amiga.programmer

Okay folks, need some help locating a few things.  In my job I deal with Honeywell, IBM, and Unisys mainframes, and have to communicate with them in several different languages.  It would be nice if I could experiment with routines on my Amiga, sooooo....

     I need a Cobol and an Ada compiler.  

          A Unix operating system to run on my Amiga would be nice also.

Anyone know where I can get these things?
From: jfritz@amiganet.chi.il.us (John Fritz)
Newsgroups: comp.sys.amiga.programmer
Subject: Help! 2.04 & FTP,redirection,Pipe,ARexx
Date: 7 Apr 92 03:46:13 GMT
Organization: Amiga Network Information Systems

I am having some problems with either FTP, redirection, or handlers 
running under WB 2.04 and I'm hoping someone can help.
 
The following is an example ARexx program that demonstrates my problem.
 
----------------------------
 /* get file size from the mini computer using the FTP 'ls' command */
address command
options results
 
filename = '@data_a(jfritz)jcltest'
lgnnam = 'JFRITZ'
sysnam = 'moe'
 
n1 = open(fil,'pipe:tmpftpcmd','W')
n2 = writeln(fil,lgnnam)
 
n3 = writeln(fil,'ls' filename)
 
n4 = writeln(fil,'quit')
n5 = close(fil)
 
address command "ftp <pipe:tmpftpcmd >ram:ftpstat" sysnam
 
outstr = 'command:ls' filename '0A'X
  
n6 = open(fil,'ram:ftpstat','R')
do until eof(fil)
   outstr = outstr || readln(fil) || '0A'X
end
n7 = close(fil)
say 'Result of FTP:' '0A'X '0A'X || outstr
exit
 
-----------------------------
Output to ram:ftpstat if the Pipe-Handler from WB 1.3 is mounted as PIPE:
 
Connected to moe.
220 Server ready for new user.
Name (moe:jfritz): 230 User logged in, proceed.
ftp> 200 Service okay.
150 File status okay: about to open data connection.
@DATA_A(JFRITZ)JCLTEST                              size=       6  type=50
acc: ow-JFRITZ  -(R,W,M,U,A, ,D,  ,  ); pr-SYSTEM  -(R,W,M,U,A, ,D,  ,  )
     ot-        -(R, , , , , , ,  ,  )  blocked=Y last chg 03/03/1992 15:48:18
226 Closing data connection. Requested file action successful.
ftp> 221 Server closing control connection.
 
-----------------------------
Output to ram:ftpstat if Queue-Handler from WB 2.04 is mounted as PIPE:
or if the < input file is from ram: or a dh#: instead of PIPE:
 
Name (moe:jfritz): @DATA_A(JFRITZ)JCLTEST                              size=  
    6  type=50
acc: ow-JFRITZ  -(R,W,M,U,A, ,D,  ,  ); pr-SYSTEM  -(R,W,M,U,A, ,D,  ,  )
     ot-        -(R, , , , , , ,  ,  )  blocked=Y last chg 03/03/1992 15:48:18
 
------------------------------
There is apparently no Pipe-Handler under 2.04 although it is mentioned on
page 7-86 of the 2.0 manual.  The mountlist that comes with 2.04 mounts
Queue-Handler as PIPE:
 
I can get the full output if I manually do the FTP from a shell with output
redirection while typing in the commands, but if I use input and output
redirection I only get the short result.
 
Configuration:
Amiga 2000HD
A2630 Accel.
A2065 Ethernet
WB 2.04 37.66 (ARexx 1.15) 
AS225 TCP/IP  (FTP vers Nov 12 1990)
 
I would appreciate any suggestions as to what might be wrong with this.
 
John Fritz
Commonwealth Edison Co.
(708) 691-4750
jfritz@ceco.com
jfritz@amiganet.chi.il.us
From: galetti@uservx.plk.af.mil
Newsgroups: comp.sys.amiga.programmer
Subject: Interrupts--please help...
Date: 13 Apr 92 12:09:13 GMT
Article-I.D.: uservx.1992Apr13.120914.32901
Organization: Phillips Laboratory - Kirtland AFB

If I _completely_ take over the system, I should be able to install my own 
interrupt vector at one of the auto-vector locations.  Currently, I am trying
this, and here is some "pseudocode" for what I'm doing:

		Forbid task switching
		Disable interrupts
		Read long word at location $68 (Level 2 autovector)
		Store long word read from $68 for safe-keeping
		Write "Interrupt Routine's" address to location $68
		Initialize FLAG to zero
		Enable Interrupts

		while ( (FLAG == 0) OR (Left Mouse Button is not pressed))
			wait

		Disable Interrupts
		Restore long word originally read from $68
		Enable Interrupts
		Permit Task Switching
		Return to OS

	Interrupt Routine:
		Set FLAG to nonzero value
		Service/Respond to interrupt
		Return from exception

I just can't seem to get program flow to get to the interrupt routine.  The
routine works fine as long as an interrupt is not generated.  I can abort the 
program by pressing the left mouse button and everything works ok.  But, as 
soon as I try to abort the program by generating an interrupt, everything 
locks up and I have to reboot.  I generate the interrupt by releasing the 
"RETURN" key that I pressed to run the program.  The releasing of the key
generates a keyboard interrupt.

Please let me know if you have any ideas as to what's happening.  Thank you in
advance,

-Ralph

-- 
  ___________________________________________________________________________
 /   Ralph Galetti                  Internet:   galetti@uservx.plk.af.mil    \
|    PL/LTT                         Interests:  computers, music, computers   |
|    Kirtland AFB, NM 87117-6008                and music, golf, sleep.       |
 \"What's he like?  It's not important--Particle Man." - They Might Be Giants/
From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
Newsgroups: comp.sys.amiga.programmer
Subject: CreateProc: tc_MemEntry
Date: 8 Apr 92 18:23:05 GMT
Distribution: comp.sys.amiga.programmer
Organization: Jet Propulsion Laboratory


	Hi. Probably a dumb question, but better safe than sorry. Does
CreateProc use the MemEntry list (tc_MemEntry) in the task control block
to track its memory consumption? I know that CreateProc allocates a process
control structure and however much memory is asked for the stack and that
these resources are freed when the process dies.

	If you create a fake seglist that merely contains a jump to the
start of your code and (of course) would never be UnLoadSegd - is it ok
to free the memory used for it after the process code has begun? At least
from the process code point of view the fake seglist passed to CreateProc
is no longer needed.

	thanks, jeff
From: P_TROIA@UPR1.UPR.CLU.EDU
Newsgroups: comp.sys.amiga.programmer
Subject: Stuck with damaged A3000 bad kickstart disk
Date: 8 Apr 92 23:20:00 GMT


     Help! I just got my new 3000 from the dealer today, but it seems that 
someone at the dealership screwed up my kickstart disk while trying to set 
up the system for me. Unfortunately, they don't have any backups available 
and I'm afraid I'll have to wait several days before they can get a new 
disk from Commodore. If some kind soul with the disk would take pity from 
my suffering could he please e-mail me an uuencoded copy? I would not ask 
if I were not desperate, I'm just staring at my shiny new 3000 screen 
saying: "Error reading floppy!. Reboot system.". I'll be forever grateful 
if someone sent me a copy of the disk.

     Thanks in advance!

     Desperate,

     Paolo Troia
--------------------------------------------------------------------------
Paolo V. Troia           | Universidad de Puerto Rico        |   // Amiga
p_troia@upr1.upr.clu.edu | Escuela de Medicina, RCM          | \X/ o nada!
--------------------------------------------------------------------------
From: johnv@tower.actrix.gen.nz (John Veldthuis)
Newsgroups: comp.sys.amiga.programmer
Subject: Re:  StartNotify() problem
 <johnv.0897@tower.actrix.gen.nz> <1992Apr3.175135.22101@jato.jpl.nasa.gov>
    <sticht.04nr@edith.deg.sub.org>
Comment-To: sticht@edith.deg.sub.org (Stefan Sticht)
Date: 11 Apr 92 05:12:38 +1200
Organization: Amiga Virus Extermination Services, TAUG

Quoted from <sticht.04nr@edith.deg.sub.org> by sticht@edith.deg.sub.org (Stefan Sticht):
> 
> I'm using notification and it works. No bogusware. I've just  one  problem:
> Notification on a directory doesn't notify if a file of that directory gets
> deleted.
> 

I am not saying it doesn't work. I am saying that after I get notified that
the file I am watching gets changed, changing another file in the SAME
directory causes me to get Notified again.
--
*** John Veldthuis, Taranaki Amiga Users Group, johnv@tower.actrix.gen.nz ***
From: mks@cbmvax.commodore.com (Michael Sinz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Workbench-like PROPGCLASS Gadgets ?
Date: 15 Apr 92 13:13:36 GMT
Reply-To: mks@cbmvax.commodore.com (Michael Sinz)
Organization: Commodore, West Chester, PA

sevigny@vlsi.polymtl.ca (Benoit Sevigny) writes:
>I'm using 2.04 but I worked on this last night and have had my NewLook. My real
>problem however is to create an AUTOKNOB PROPGADGET with NewObject.  I can
>create Workbench-like PROPGADGET with a Gadget structure along with the
>AUTOKNOB and NEWLOOK flags, but I'm unable to create these gadgets with the
>NewObject Boopsi call.  I always end up with a simple proportional gadget.
>I tried to OR AUTOKNOB with FREEVERT in the PGA_Freedom tag but it
>doesn't work. Is there a "PGA_AutoKnob" tag kind?

Ripped from some of my code:

struct	TagItem	prop[]=	{	{GA_Top,0},
				{GA_RelHeight,0},
				{PGA_Top,0},
				{GA_RelRight,-13},
				{GA_Width,10},
				{GA_RelVerify,TRUE},
				{GA_RightBorder,TRUE},
				{PGA_Freedom,FREEVERT},
				{PGA_Total,1000},
				{PGA_Visible,100},
				{PGA_NewLook,TRUE},
				{TAG_DONE,NULL}
			};

...All sorts of other code...  (including locking the public screen)

	prop[0].ti_Data=Screen->BarHeight+Screen->WBorTop+1;
	prop[1].ti_Data=-12-prop[0].ti_Data;

	if (delay>1000) delay=1000;
	prop[2].ti_Data=delay;

	Scroller=NewObjectA(NULL,"propgclass",prop);

...now use the Scroller gadget...

/----------------------------------------------------------------------\
|      /// Michael Sinz  -  Senior Amiga Software Engineer             |
|     ///                   Operating System Development Group         |
|    ///   BIX:  msinz      UUNET:  rutgers!cbmvax!mks                 |
|\\\///                     When people are free to do as they         |
| \XX/                      please, they usually imitate each other.   |
\----------------------------------------------------------------------/
From: lawsons@csgrad.cs.vt.edu (Shannon Lawson)
Newsgroups: comp.sys.amiga.programmer
Subject: Enforcer
Date: 6 Apr 92 14:30:30 GMT
Distribution: comp.sys.amiga.programmer
Organization: VPI&SU Computer Science Department, Blacksburg, VA


I'm trying to use the Enforcer to help debug a program.  However, I have no
documentation for it.  When invoked, the program claims that data is sent either
to the serial or parallel port.  I have never had any success in sending it to
the parallel port.  How is this done?

Also, I'm using Aztec sdb at the same time, so I can dump the section of code
given by the approximate PC value spouted by the Enforcer.  Can someone
explain some of the other fields?  User Stack Pointer and User Stack are
pretty straightforward, but I'm not sure about some of the other fields.

Stupid Enforcer Tricks:

If you have a modem, load up your comm package before enabling Enforcer.
Make sure local echo is enabled (ATE1), and then enable the Enforcer.  Run
your bug-ridden code, and presto!  Well, it's REALLY slow, but you eventually
get to see the Enforcer output on your comm screen.  You can get hardcopy by
opening a buffer with your comm program before running the code.  It's 
painfully slow, but it works.  Obviously, parallel port dump would be nice.

-----
  Shannon Lawson, EE Grad Student           || E-mail: lawsons@csgrad.cs.vt.edu
  Virginia Tech                             ||         lawsonse@vttcf.cc.vt.edu 
  Disclaimer:  I said it.  So what?  Do you believe everything you read?
From: aces@mcode.amdahl.com (Jeffrey D. Smith)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Version numbers
Date: 7 Apr 92 15:24:19 GMT
Reply-To: jds30@amail.amdahl.com
Organization: Amdahl Corporation, Sunnyvale Ca.

In article <21151@hacgate.UUCP>, johnl@SDFSERV.hac.com (John Lee) writes:
> In article <1992Apr6.164211.23350@jato.jpl.nasa.gov> jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
> >In article <1992Apr5.040159.24086@samba.oit.unc.edu> Frederick.Theilig@bbs.oit.unc.edu (Frederick Theilig) writes:
> >>
> >>     Once while browsing through the Amiga Style Guide, I noticed their
> >> comment on using version numbers.  Somehow, one is to burn in the
> >> text "$VER: <progname> x.xx" into their program.  All well and good.
> >> Any ideas as to the best method for doing this?  At the moment, I do
> >> char ver = "$VER: bla bla", which works.  Is there a better way?  I'm
> >> using DICE.
> >
> >"$VER" appears to be an environmental variable. The leading $ just means
> >that the remainder will be replaced with whatever it has been set to.
> 
> Nope.  It's the "tag" that C:Version looks for in a binary executable.
> Version will print the following two space-delimited items by default
> and the following three space-delimited items with the "ALL" (or is it
> "FULL"?  I forget) keyword.
> 
> Adding a static character array at the top of a module to embed program
> or module ID information is pretty standard in the UNIX world.  On the
> Amiga, I usually do something like this at the top of the main program
> module:
> 
>     #ifndef lint
>     static char ver_id[] = "$VER: <progname> <version> <date>";
>     #endif
> 
> The "#ifndef lint...#endif" prevents a Lint program (a C program static
> checker) from complaining about a declared-but-unused variable, assuming
> that I ever Lint for my Amiga.  I usually add another similar line if
> I'm using RCS, so that my main module has this:
> 
>     #ifndef lint
>     static char ver_id[] = "$VER: <progname> <version> <date>";
>     static char rcs_id[] = "$Id: <rcs_info> $";
>     #endif
> 
> and other modules only have the rcs_id.
The commercial product Quma Version Control System (QVCS) also
supports version strings in this manner, and copyright strings.
QVCS is very similar to RCS, but with extra bells and whistles.

I have no affiliation with Quma; just a satisfied customer.
From: mykes@amiga0.SF-Bay.ORG (Mike Schwartz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Lock() and int-ptr conversion warning
Distribution: world
X-NewsSoftware: Amiga GRn V1.29 4/10/92 (Beta) by Mike Schwartz
Date: 12 Apr 92 13:02:53 PST
Organization: Amiga makes it possible

In article <920412.005038.CDT.C503719@UMCVMB.MISSOURI.EDU> C503719@UMCVMB.MISSOURI.EDU (Baird McIntosh) writes:
>Given the following partial code, why do you think DICE gives an
>'int-ptr conversion' warning on the line 'lock = Lock(...' ?
>
>        struct FileLock *lock;
>
>        /*** get a lock on a file ***/
>        lock = Lock("s:startup-sequence", SHARED_LOCK);
>        if( lock == NULL )
>            goto cleanup0;
>

DICE seems to be complaining about the if (lock == NULL) where you are comparing
a BPTR to a (void *).  Try casting that NULL to a (BPTR) and it will work ok.

--
Author of Amiga GRn, MailMinder, Budokan, Beyond Dark Castle, Dark Castle,
and Genesis Dick Tracy and Marble Madness.
Mike Schwartz  (ames!zorch!amiga0!mykes or mykes@amiga0.sf-bay.org)
1124 Fremont Ave.
Los Altos, CA 94024
From: app@shamash.cdc.com ( GSD Advanced Packing/Processes)
Newsgroups: comp.sys.amiga.programmer
Subject: What is different about Mac SCSI protocall?
Date: 16 Apr 92 20:30:58 GMT
Article-I.D.: shamash.41193
Organization: Control Data, Arden Hills, MN

I have a problem that I'm hoping someone will help me with.

I recently built a Spartan SCSI interface (PD project) and purchased 
a Fujitsu hard drive from a Macintosh mail order outfit.  The trouble is,
I can't make them talk to each other.

When I bought the drive I assumed that SCSI was SCSI but have since
learned that my drive is firmware configured for Macintosh which is
non-standard SCSI.  On my particular drive, I can not make it generic
SCSI with jumpers and switches!  (The larger Fuji drives are fully 
configurable).

It turns out that I had the source for the low level Spartan formatter 
and was able to get it to seemingly work by putting in a delay between the
time when the SCSI SEL line was deasserted and when the REQ signal was
looked at.

The Spartan designer is sending me the source for the device driver and
I may be able to patch it so it will talk MAC protocall if I only knew
what that is.

If anyone can help me by telling me the differnce between MAC and generic
SCSI I would greatley appreciate it!

Thanks in advance
						Mike Lundberg
						app@shamash.cdc.com
From: Scott.Maxwell@bbs.oit.unc.edu (Scott Maxwell)
Newsgroups: comp.sys.amiga.programmer
Subject: Need help using console.device (pre-2.0, if it matters)
Summary: You think I *enjoy* not having the RKMs?
Date: 13 Apr 92 08:03:45 GMT
Organization: Extended Bulletin Board Service

I'm using SAS/C 5.10b on an OS1.2-equipped A500. Once I've opened a window, 
how do I:

	-- attach a console.device to it? (I understand this is necessary
	   for the following two steps.)

	-- change the color of the text? I don't want to do any graphics
	   at all, only text stuff.

	-- move the cursor position to an arbitrary (x,y)?

	-- find out that the user pressed a key, and which key was pressed?
	   It seems that getch() waits for a [RETURN]. :-(


What I'd like to do is be able to write something like:

	if (ch = keypressed()) process_key(ch);
	gotoxy(myconsole, x, y);
	textcolor(15);
	printf("Running total is %d", run_tot);


Also, how do I send printf() and puts() calls to my console (as shown above), 
rather than to the window of the CLI which launched the task? I assume the
method would be similar for scanf(), no?

I know it's probably not exactly the Amiga way to do things, but I have
to port this code to IBM eventually and I'd like to have as few hassles
as possible with Turbo C.

I'd appreciate any help you can give (especially complete, working code :-) ).

--
Scott Maxwell (CSMAXWEL@ECUVM1.BITNET or Scott.Maxwell@bbs.oit.unc.edu)

--
   The opinions expressed are not necessarily those of the University of
     North Carolina at Chapel Hill, the Campus Office for Information
        Technology, or the Experimental Bulletin Board Service.
           internet:  bbs.oit.unc.edu or 152.2.22.80
From: eb15+@andrew.cmu.edu (Edward D. Berger)
Newsgroups: comp.sys.amiga.programmer
Subject: another SAS/C FAQ re:cback.o and default paths
Date: 14 Apr 92 19:31:11 GMT
Organization: Pittsburgh Supercomputing Center, Carnegie Mellon, Pittsburgh, PA

This is probably another FAQ regarding SAS/C.  I haven't yet upgraded to
5.10b from 5.10a.

I have a program, which uses the System() call of AmigaOS 2.04.
When I compile the program with c.o, I have my full search path
to find the command I'm trying to execute.  When I compile the
program with cback.o (so it detaches from CLI without using "RUN")
it only has The current directory and C: as its search path.

Is there a really good reason for this behavior? Is there an
easy (say copy the workbench's path from its process structure,
before executing the System() call??)

Thanks in advance:
-Ed Berger
eb15@andrew.cmu.edu
eberger@psc.edu
Newsgroups: comp.sys.amiga.programmer