HDTenEightyP/NetNews huggingface dataset:
From: hadig@kaa.informatik.rwth-aachen.de (Thomas Hadig)
Subject: Problems with SAS/C library (3)
Keywords: SAS/C
Organization: Rechnerbetrieb Informatik  /  RWTH Aachen
Date: 16 Nov 92 11:14:13 GMT

Hi,
i found a problem in the SAS/C 6.0 library :

The fstat function uses the amiga os 2.0 dos function ExamineFH,
so if you use this function with amiga os 1.3 your machine will
crash.

I told EMITS, to mail or post a list of functions using 2.0
features. I will post it,when i get the list (if SAS doesn't
do it).

Ciao
Thomas Hadig

----------------------------------------------------------------------------
Thomas Hadig, Otto-Petersen-Haus Zi.1009, Ruetscher Str.155, D-51 Aachen
       hadig@rog.rwth-aachen.de
       hadig@pool.informatik.rwth-aachen.de
----------------------------------------------------------------------------
Newsgroups: comp.sys.amiga.programmer
From: graham@venus.iucf.indiana.edu (JIM GRAHAM)
Subject: TurboDEX, a SIMPLE but elusive problem...
News-Software: VAX/VMS VNEWS 1.3-4   
Reply-To: graham@venus.iucf.indiana.edu
Organization: Somewhere in Bloomington, Indiana
Distribution:  world
Date: Tue, 17 Nov 1992 22:36:39 GMT

This is driving me nuts!

As those of you who are familiar with TurboDEX know, you can access the
custom registers simply by specifying their uppercase names.

Here's an example of what I would like to do...

Suppose I want to read the value in INTREQR.  Then I wish to write that
value to the current cli from which I ran the program.

How do I do it?

I've tried the following:

PROC main()
DEF reg:LONG
  reg := INTREQR
  write 'reg = \n',reg
ENDPROC

What I get is a guru.  If I look at the assemly source created by
DEX, INTREQR does indeed equal $DFF01E.

What am I doing wrong?

Thanks,


Jim Graham 

        -> ->Disclaimer: I do not speak for my company. <- <-
                          Neither do they speak for me.
 ______________________________________________________________________
| Internet: graham@venus.iucf.indiana.edu                              |
|           dolmen!jgraham@moose.cs.indiana.edu                        |
| BBS:      The PORTAL DOLMEN BBS/ParaNet ALPHA-GAMMA (sm) (9:1012/13) |
|            (812) 334-0418, 24hrs.                                    |
|______________________________________________________________________|
From: paulk@terapin.com (Paul Kienitz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Bug in SAS/C 6.0 library : strstr ()
Date: 15 Nov 92 20:13:14 GMT
Organization: BBS

> Basically, ANSI states that "If an array is accessed beyond the end
> of an object, the behavior is undefined."  (Section 4.11.1, first
> para.)
> 
> A NULL character array has no size, so trying to access a member of
> it at *all* is accessing "beyond the end" of it.
 
But he was not talking about a null pointer, he was ta about
"\0".  Actually, I would think returning success in that case is valid.
Newsgroups: comp.sys.amiga.programmer
From: cs_d604@ceres (David Scutt)
Newsgroups: comp.sys.amiga.programmer
Subject: Dice C - How the &*^! do I install it?
Date: 17 Nov 1992 17:17:46 GMT
Organization: Kingston University
NNTP-Posting-Host: ceres.kingston.ac.uk
X-Newsreader: Tin 1.1 PL4

		HELP!! 
	I just got hold of Matt Dillon's C compiler, and, basically, it don't 
work.  
	I'm trying to install it on my hard drive dh0:, and I've found a 
file called dice_install, but it asks for a file that don't exist (well not
on my disks).  Even if I boot up using the disks, it refuses to work...
	Replies pref. thru E-Mail....
	
--
/-----------------------------------------------\
| There is a world of unlimited resources.. 	|	Dave T Rave
| There is a mind full of outrageous dreams...	|
| There is a place where the two meet...	| cs_d604@ceres.king.ac.uk
|	Anything is possible			|
\-----------------------------------------------/
From: jbickers@templar.actrix.gen.nz (John Bickers)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: It's time to have a FAQ.
Date: 23 Nov 92 08:22:32 PST
Organization: TAP

Quoted from <1992Nov20.103947.25084@ghost.dsi.unimi.it> by ruocco@ghost.dsi.unimi.it (sergio ruocco):

> I think it's time someone provides a faq about Amiga programming.

    I offered to start a FAQ about a week and a half ago. Currently it
    has very little in it, because there seem to be very few
    frequently asked questions. A lot of the bandwidth is taken up by
    "discussion" stuff, like why on Earth libraries would create
    different library bases, why the serial.device doesn't drop DTR
    until you close it, why there won't be a hardware manual for the
    AGA machines, etc.

    Anyway, if you have answers to any of the questions you suggested
    should be in it, you can email them to me and I'll add them to the
    list!

> 					Sergio
--
*** John Bickers, TAP.                   jbickers@templar.actrix.gen.nz ***
***    "Radioactivity - It's in the air, for you and me" - Kraftwerk    ***
Newsgroups: comp.sys.amiga.programmer
From: gencon06@titan.ucc.umass.edu (WatchDog)
Subject: Re: Dice C - How the &*^! do I install it?
Organization: University Computing Services
Date: Wed, 18 Nov 1992 14:46:06 GMT

either post replys here, or please also e-mail me the responces.  Thanx.
                                                    -WatchDog
Newsgroups: comp.sys.amiga.programmer
From: peterk@cbmger.de.so.commodore.com (Dr Peter Kittel Germany)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Searching for DOS documentation
Date: 16 Nov 92 16:18:43 GMT
Reply-To: peterk@cbmger.de.so.commodore.com (Dr Peter Kittel Germany)
Organization: Commodore Germany
Keywords: DOS, documentation

In article <BxrxEH.K0o@immd4.informatik.uni-erlangen.de> ftegerer@cip.informatik.uni-erlangen.de (Frohwalt Egerer) writes:
>I'm looking for a documentation of AmigaDOS. That really means DOS:
>I know there is a DOS book from bantam books. Hoever I never have seen
>it, and I don't know if it contains the expansions done in Release 2
>of the operating system.

Yes, there is already a version that knows about 2.0. If you don't need
the 2.0 features so badly, I can highly recommend the german book by
Ralph Babel, "Das Amiga Guru-Buch" (Selbstverlag, Taunusstein). It's
one of the best ones known and covers this matter exactly.

-- 
Best regards, Dr. Peter Kittel  // E-Mail to \\  Only my personal opinions...
Commodore Frankfurt, Germany  \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk
Xref: sparky comp.sys.amiga.programmer:16043 comp.sys.amiga.hardware:19900
From: spence@cbmvax.commodore.com (Spencer Shanson)
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
Subject: Re: Attn Commodore: You are making a Big Mistake (Hardware
Date: 18 Nov 92 19:04:00 GMT
Organization: Commodore, West Chester, PA

In article <Bxvrpv.31E@acsu.buffalo.edu> jcmurphy@acsu.buffalo.edu (Jeff Murphy) writes:
>	Hmm.. although this discussion is very entertaining.. it does raise
>one point: the hardware manual comes in handy for non-OS programming.
>Consider this: the 4000 (a realtively fast machine) would be very nice
>with UNIX. But.. Commodore's record as far as UNIX is concerned is well,
>not very good (to say the least). So their are several other efforts
>currently underway, but in order to port over a new OS, you need to know
>about the machines *hardware*... otherwise your job will become very 
>difficult. So.. in the interest of helping those who wish to undertake
>such things as a port of UNIX to new machines, Commodore should release
>an hardware manual for the machine.

Realise that a port of another OS to the Amiga, such as UNIX, is not the type of
project that many software companies are likely to do. In a really extreme case,
then maybe we could help out with regards the details of the AA chip set.

I am no UNIX expert, but is there a reason why the display side of a UNIX port
could not sit on top of the graphics.library? After all, to bring up a UNIX
screen would involve duplicating the work that has already gone into the A4000
kickstart.

>jcmurphy@acsu.buffalo.edu                   cit network installation & repair
>opnsmurf@ubvms.cc.buffalo.edu                                          sunyab
>				   


-- 
---------------------------------------------------------------------------
Spencer Shanson - Amiga Software Engineer     | email: spence@commodore.COM
                                              | or uunet!cbmvax!spence
All opinions expressed are my own, and do not | Bix: sshanson
(necessarily) represent those of Commodore.   | Have you Wobbled a
                                              | Weeble today?
From: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: A Style Guide Question
Date: 18 Nov 92 11:16:42 GMT
Reply-To: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
Organization: The Software Winery
X-Newsreader: Arn V1.00 alpha rel2

In article <17474@pitt.UUCP>, Dan Drake writes:

> [...] type text into a beveled box which I handle manually.  If the
> user wants to type a d or a c, [...] Will the buttons be activated,
> or should the characters appear in the "textbox"?
>
> 1.) If a text box is active, the user must click on the buttons to activate
> them.  I consider this unacceptable because it ruins the orthogonality of
> the interface.  You can't have some things work in one window, and not in
> others.

I had the same problem. I have chosen to see a "textbox" as a thing which
needs to be activated to be able to accept characters, and when activated
all typed chars go to the "textbox".
THEN the user must press a function key (I use ESCAPE) to deactivate the
"textbox" and return to the window shortcuts operations.

Intuition StringGadgets acts already like that with the RETURN key which
is generaly used as "accept the entry" and deactivate the StringGadget.
So in this way, the ESCAPE key can mean "cancel" or "quit StringGadget
without confirmation" an deactivate the StringGadget too.

Hope you'll agree this way ;-)
    Jean-Michel
--
 Jean-Michel Forgeas      uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
 16170 Bordeville                            __
 France                                      \/
From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: ENFORCER hits from SLINK SAS/C 6.0
Date: 18 Nov 92 12:49:12 GMT
Organization: Edotronik GmbH

In article <heinz.04nf@edohwg.adsp.sub.org> heinz@edohwg.adsp.sub.org (Heinz Wrobel) writes:
>I have a problem with slink. After everything _compiled_ok_, slink barfs on
>linking and stops, giving me a load of enforcer hits.
>[...]
>These are the slink relevant smakefile parts
>
>---- cut ----
>LINK=SC:c/slink

I know where this bug comes from now! It's actually a bug in the SAS/C 6.0
tmpfile() function!

slink tries to create a tmpfile. tmpfile() is supposed to use the first
three characters of the program name. It doesn't. It uses first three
chars of the the _complete_ access path, which messes up the tmpfile name!

SLINK	    --> T:SLI.whatever

SC:C/SLINK  --> T:SC:.whatever	(!!!!)

Workaround: Keep SC:C in your path and don't use SC:C in your makefiles!

>PS: This is not yet reported to emits. I still have problems registering :-((

Same thing ... :-((

--
Heinz Wrobel, Edotronik GmbH (ECG018)
FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
"It's good to have a mouse, it's faster if you can do without one..."
"He who doesn't develop with an A2024 doesn't know about font independent
 user interfaces..."
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
From: csg019@cck.coventry.ac.uk (-~=Zaphod=~-)
Subject: Re: Attn Commodore: You are making a Big Mistake (Hardware
Organization: Coventry University
Date: Tue, 17 Nov 1992 13:45:50 GMT

In article <69517@cup.portal.com> joeles@cup.portal.com (Joel Edward Swan) writes:
>In article <1992Nov12.000037.27562@wuecl.wustl.edu> amc@wucs1.wustl.edu
>(Adam Costello) writes:
>
>>If Commodore refuses to release a hardware manual for future Amigas,
>>they will be betraying their most loyal customers...
>
>I disagree.  Their most loyal customers are those who play by the rules, sell
>useful software that is good enough to be purchased and build reputation of
>running under more than one vesion of the OS.  These increase software sales
>and hence hardware sales.  I buy software that works with accelerators on
>any OS version, not cheap games hacks that die after swithcing from OS1.2!

I will definately but a FALCON if CBM do this.

>Way to go CBM!!!
Yeah, home run....
-- 
*******************************************************************************
*        ///  A member of S.H.I.T. (Super High Intelligence Team)    ///      *
*       ///        Fight, defeat and kill organized laming.         ///       *
****\\\X//********Steven Haggerty**csg019@uk.ac.cov.cck ok?*****\\\X//*********
Newsgroups: comp.sys.amiga.programmer
From: bjst@sth.frontec.se (Bjorn Stenberg)
Subject: Re: New hardware reference guide?
Organization: IDK/Frontec - System Design Group
Date: 17 Nov 92 20:47:57 GMT

podesta@qut.edu.au writes:
> Come on now!! How many advanced system software, that was written on a
> 1.3 A500 with no harddrive will work on a A4000???
> I bet there's not much.

Browse through the early Fish Disks and you'll find a lot of stuff
still working like a charm.

> And don't forget that demo coders don't get any wonderful Developers info.

Why not? Become a registered developer and you'll get the info.
If you want to know how your machine works and how to use it, go get
info where info is to get: Commodore.

		-- Bjorn



       ///  Bjorn Stenberg, Stockholm, Sweden         bjst@sth.frontec.se
      ///  main() { printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
 \\\ ///  "- Your documentation no longer confuses me, old version!"
From: jamiller@kuhub.cc.ukans.edu
Newsgroups: comp.sys.amiga.programmer
Subject: Wouldn't it be nice to have stream for error msgs?
Date: 19 Nov 92 01:56:12 CST
Organization: University of Kansas Academic Computing Services

Not that I expect a response here or anything, but I wonder if there
are plans to add another stream for error msgs (ala' *nix) in the near
future?
-- 
jamiller@kuhub.cc.ukans.edu
James Miller

_chicchai .sig no ho ga ichiban iin janai ka..._
             Enlightenment Happens?
From: dillon@overload.Berkeley.CA.US (Matthew Dillon)
Newsgroups: comp.sys.amiga.programmer
Subject: Re:  DICE
Distribution: world
Date: 19 Nov 92 12:01:51 PST
Organization: Not an Organization

In article <OA92-901-607p3_158ba2b8@piraya.bad.se> Roger_Martensson@p3.nola.bbs.bad.se (Roger Martensson) writes:
>Let me quote something Jay Brown said on  4-Nov-92:
>
>
> JB>	      I just downloaded DICE.  It was in .lzh format.  Is there
> JB> anyway to unlharc it on a dual floppy system.  The archive takes up
>..
>
>Ex. with LhA:
>
>LhA x DICE.LZH bin/* doc/* include/* df0:
>
>This would unpack everything in bin, doc, include and put it on the disc in
>df0:

    Please be sure to use lharc -r -x -a x <archive> ... that is, to
    restore the whole directory tree and proper permissions rather then
    restore all the files to one directory.  lharc x will not necessarily
    do this automatically depending on which version of lharc you have.

    By the way, look for a new freeware release along with a new registered
    release in December.  Can't say about the commercial release yet but we
    are working *hard* on it!

					    -Matt



> JB>		      Jay Brown
>Happy programming,
>/Rm - InterNet: Roger_Martensson@p3.nola.bbs.bad.se
>---

--

    Matthew Dillon		dillon@Overload.Berkeley.CA.US
    1005 Apollo Way		uunet.uu.net!overload!dillon
    Incline Village, NV. 89451	ham: KC6LVW (no mail drop)
    USA 			Sandel-Avery Engineering (702)831-8000
From: barham@qut.edu.au
Newsgroups: comp.sys.amiga.programmer
Subject: Info about requesters and such
Date: 23 Nov 92 10:32:01 EST
Organization: Queensland University of Technology

Hello gurus,

I have a question regarding Requesters, GadTools gadgets, ReqTools etc.

Firstly I gather that you can't use GadTools gadgets in a requester.  So,
if I want to create a requester using GadTools gadgets I would just fake
it with a window, right?  Things like file requesters and stuff I can do
with ReqTools if I want, but I also have some rather complex requesters
I need to put up.  Now, while these "requester" are up, I want to block
all user input into the main window, and put up a wait pointer when the
main window is active.  ReqTools provides a function to do just this.
Even GadTools gadgets don't do any rendering when you use this function.
What I wanna know is, how do you do this yourself (without using the
ReqTools function - if I end up deciding to use ReqTools requesters,
which I may well do, then I'll use that function, but for now I would
rather stick to ASL stuff so I don't have to distribute YAL - yet another
library - with software) in a system friendly way? (Read that last sentence
without the stuff in brackets so it makes sense %^).

Any ideas?  Am I overlooking something entirely obvious?

Oh, FYI (for your information - why do I keep using acronyms when I then
just go and expand it in brackets?) I will be writing this stuff to use
V37 and above functions (very restrictive of me, hey!).

Thanks,

-- 

----------------------------------------------------------------------
| t.barham@qut.edu.au (Tim Barham) - "Dances with Mice"              |
| Applications Programmer for the Computer Based Education Section,  |
| Queensland University of Technology, Brisbane, Qld, Australia      |
----------------------------------------------------------------------
| "You're so open-minded that your brain leaked out..."              |
----------------------------------------------------------------------
From: mefisto@rmece02.upr.clu.edu (Jaime R. Lopez Vazquez)
Newsgroups: comp.sys.amiga.programmer
Subject: GNU C and C++ for Amiga?????
Date: 19 Nov 92 00:25:11 GMT
Organization: UPR-Mayaguez--ASEL Lab


     I'm pretty new here in comp.sys.amiga.programmer.
From what I have seen many people here use GNU C with 
Amiga. How can be GNU C and C++ be used with Amiga? 
What set-up is necessary to access all the Amiga OS 
functions with GNU C and C++?
      I will appreciate any help on this.

-Jaime Lopez
From: robinson@elux2.cs.umass.edu (RICHARD ROBINSON)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: A couple of questions
Date: 15 Nov 92 21:32:18 GMT
Reply-To: robinson@elux2.cs.umass.edu (RICHARD ROBINSON)
Organization: The Realm of Dread


In article <1992Nov13.063457.22216@ucc.su.OZ.AU> willw@extro.ucc.su.OZ.AU (William Waring) writes:
>In article <55989@dime.cs.umass.edu> robinson@elux3.cs.umass.edu (RICHARD ROBINSON) writes:
>>>>
>>Ok, I have a couple of questions that I'd love to find answers to.
>>
>>1. Can a packet sent to DOS be aborted? I send an ACTION_READ to a console,
>>and need to get rid of it when I exit. I just can't ask the user 'please hit
>>a key so I can exit.' And since the exit is based on the termination of
>>another process, there is no way to not send the packet when I'm about to,
>>'cause I don't know when it is going to exit.
>>
>>Failing that, can I trick the console into thinking I typed something?
>
>Are you using the console.device or opening a "CON:" window. If you're
>using CON: and Wb2.0, then you don't have to send a ACTION_READ packet to
>the device. Just do a straight SetMode(FileHandle,1) to turn the console
>window into RAW: mode. Then just do a straight DOS
>Read(FileHandle,DummyChar,1) from the filehandle. You should probably set
>the mode back to CON: when you do that. Other than that, shouldn't have
>any problems... If you're doing it using the console.device then look in
>the RKM: Devices manual for information on how to program the device. It's
>too lengthy to explain here... But I don't think you're using that meathod?

Well, I am running under 2.0, but with 1.3 includes (poor college student),
so 2.0 functions that can be called without 2.0 includes are the limit.

Anyway, ACTION_READ, not ACTION_SCREEN_MODE... I am doing asynchronous
reads by sending a ACTION_READ packet. Read(filehandle,buffer,x) would freeze
me up. It has nothing to do with the mode of the console. I send a READ,
and when it returns, stuff the character into a pipe. When I am ready
to exit, there is one outstanding read. I need to be able to kill it.

--
Dread				      (Richard Robinson, Univ of Mass, Amherst)
dread@titan.ucc.umass.edu	      "There is no right, there is only power!"
robinson@elux3.cs.umass.edu		     "Kill them, kill them all!"
From: nummer_5@obh.in-berlin.de (Christian Wierzbicki)
Subject: Problems using huge Files in 'C' (maybe FAQ ?)
Organization: obh - private bbs in Berlin/Germany
Date: Fri, 20 Nov 92 19:05:43 GMT

Hi Folks !
----------
I got stuck on a problem concerning a huge data file in my latest project.
It contains various types of data and can be of some 10megs length...
Therefore I don't like the idea of having to copy this beast when changing
an area of about 200 bytes...

What can I do about this...??? Appending should be no problem, but what about
replacing (not inserting !) ????

Please answer quick as I can't continue my work without this...

Thanks in advance...

Ciao...
    nummer_5@obh.in-berlin.de

* Christian Wierzbicki * Fuerther Str. 20a * +49-30-7443030
* W - 1000 Berlin 49   * Germany           *
From: stuart@minster.york.ac.uk
Newsgroups: comp.sys.amiga.programmer
Subject: SAS/C 6.0 upgrades in the UK
Keywords: SAS/C 6.0 available UK yet
Date: 19 Nov 92 12:52:25 GMT
Organization: Department of Computer Science, University of York, England

Has anyone in the U.K. (or Europe?) received their upgrade notice for
SAS/C 6.0 (or 6.0 itself)? I thought they were to be sent out in
mid-September but since its now mid-November perhaps mine got lost...

Stuart
(stuart@minster.york.ac.uk)
Newsgroups: comp.sys.amiga.programmer
From: umsmigi0@ccu.umanitoba.ca (Trevor Allan Smigiel)
Subject: How to program icon dragging from window to window?
Organization: University of Manitoba, Winnipeg, Canada
Date: Wed, 18 Nov 1992 19:09:35 GMT

     What is the process for dragging bitmaps around on a screen
without flicker?  I want something with the same functionality
as icons in a Workbench window (click and drag).

Thank you,
Trevor
umsmigi0@ccu.umanitoba.ca
Newsgroups: comp.sys.amiga.programmer
From: wild@nessie.cs.id.ethz.ch (Markus Wild)
Subject: Re: found g++ in gcc, but can`t seem to co
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Mon, 16 Nov 1992 21:41:20 GMT

In article <1992Nov16.070023.20559@eua.ericsson.se> etxpihl@eua.ericsson.se writes:
>In article 254@bernina.ethz.ch, wild@nessie.cs.id.ethz.ch (Markus Wild) writes:
>> If using gcc, you have to explicitly specify to link with -lg++. When using
>> g++, the driver takes care of specifying -lg++, so you don't have to specify
>> it explicitly.
>
>I had the same problem. I've tried to specify -lg++, but it didn't work. I turned
>on verbose mode (-v) and saw that -lg++ now suddenly was -lg ?!. So, I renamed
>libg++.a to libg.a and everything work just fine.  Don't ask me how g++ could end
>up as just g...

Don't forget the space after -lg++, or DOS interprets the +'s as line 
continuation characters, and the application will never see them.

>One more question when I'm on the air:
>
> How can a simple C++-program that just do a cout << "Hellp world" end up as a 
>54kb binary file?
> 

This is due to the way C++ classes are implemented. Normally, each class is
implemented with one header file and one implementation file. The latter
can get quite large. So, for example, all the code needed to implement 
the "<<" on cout is one or more rather huge object files, containing tons
of functions you don't really want, but which you can't get rid of, because
the linker can't extract functions selectively from an object file. In order
to get smaller executables, you'd have to put each function in its own
source file, but then you'd get into troubles with classes... it's quite
weird in this region...

-Markus

PS: at least, this is not a problem specific to g++, other C++ should have the
-- 
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.