Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!utah-gr!stride!tahoe!otto!jimi!hound-dog!rho
From: rho@hound-dog.cs.unlv.edu (Roy H. Ogawa)
Newsgroups: comp.sys.atari.st
Subject: Re: A ghost in the house
Summary: a note from John Ogawa
Message-ID: <851@jimi.cs.unlv.edu>
Date: 13 Jul 88 19:50:55 GMT
References: <515@stag.UUCP>
Sender: news@jimi.cs.unlv.edu
Reply-To: rho@jimi.cs.unlv.edu (Roy H. Ogawa) [PLEASE IGNORE THIS!]
Organization: UNLV Computer Science and Electrical Engineering
Lines: 71

In article <515@stag.UUCP> stdnet@stag.UUCP writes:
>In comp.sys.atari.st, thelake!steve@stag.UUCP (Steve Yelvington) writes:
> >
> >I compiled a directory lister with Mark Johnson C, version 2.0. 
> >It works just fine, but at the end of the directory, it prints out a 
> >message on the console: "(no more files)".
> >
> >This message is nowhere to be found in my program or in the MJC library.
> >So I figure that either it is coming from GEMdos, or I have a friendly
> >ghost.  I want it to go away.
>
>  Steve, I guess you could say I'm the "friendly ghost".  :)
>
>  The message you mentioned is one of the standard error code
>messages in my JSH command shell.  I'm assuming you're using JSH?

 . . . explanation of the problem and solution . . .

>
> >One of the local programmers (John Osawa, author of the Schizo desk
> >accessory) tried my code with Mark Williams C and got no such message.
> >He suggested that MJC's startup code may throw a switch, and mentioned
> >something about Perror. I thumbed through "Atari ST Application 
> >Programming" (Pollack and Weber), but found no references to Perror.
> >It's not in osbind.h. I found nothing like it in the MJC startup routines,
> >either.
>
>  To the best of my knowledge, the MWC crt0() code totaly ignores the
>return value from main() and requires that any return value other
>than zero be returned using exit(n).
>
> >
> >So: What is Perror? How do I shut off this message?
> >
>
>  Excelent programmer that he is, John Osawa is taking a long shot
>guess and, in this case, missing...  Perror (a standard C function)
>has nothing to do with your phantom so I'll skip it for the moment.
>To avoid this problem, just exit your main() routine using return(0)
>or exit(0).


Ok guys .  There is just *so* much that I can stand my name taken
error.  It's JOHN OGAWA .  Of course, the *really* funny thing about
all of this is that all 3 of us, Steve, John, and I, live in Minneapolis,
and are on some of the same BBSs .
	John was right, I was taking a stab in the dark, guessing that MJC
had a call to Perror (or some such routine) built into its TOS call handlers.
But, all's well that ends well.
	Er, please DO NOT REPLY TO THIS ACCOUNT.  I will never see it.  In
fact, until I find a USENET-accessable account, I will never see any replies.
	I *am* working on Schizo v1.5, for those who are interested.  It is
taking a long time because my research is getting in the way.  I will ask
someone to post it here if and when it is completed (maybe by one of the two
kind fellow Minneapoleans above).  If I can get it going, it will have a
non-GEM-dependant corner clock, and resolution-sensitive DESKTOP.INF reading
abilities.

Thanks much,

John Ogawa
Institute of Child Development
University of Minnesota
51 E. River Rd.
Minneapolis, MN   55455


PS>  If someone *really* needs to get a hold of me, write to the above
USmail address.  Or actually, if you can find a way, write email to:
	lxw6035@ux.acss.umn.edu
or some such domain-name.  It is a dumb, USENET-less, blind-mail machine,
 that *is* on BITNET supposedly, though you could've fooled me .