[Coco] basic09 - append to file
gene heskett
gheskett at wdtv.com
Thu Jan 13 03:41:41 EST 2011
On Thursday, January 13, 2011 02:59:02 am Willard Goosey did opine:
> On Wed, Jan 12, 2011 at 07:02:45PM -0500, gene heskett wrote:
> > Its Very Useful, Willard. The Os9 kernel itself is just a collection
> > of all these little one trick ponies, and syscall allows you to do
> > _anything_ the os can do, from a higher level language like basic09.
> > Truly the best of both worlds.
>
> I don't remember exactly, but I think I must have had some C program
> blow up completely on me when I mixed unix system calls (read, write)
> with stdio calls (getc, printf). Made me really paranoid about mixing
> "levels" of functionality.
I have in years past, played lots of mix-n-match with that, in both b09 and
in C, and don't recall it ever being a problem as long as I was using the
correct syntax for the invocation of the call, even cheating with ungetc a
goodly number of times although that does require verbatim attention to
housekeeping.
> Or I read a really stern warning about it somewhere, at least :-)
Thats possible. ISTR I have a C book around here I haven't pulled off the
shelf in 20 years, written by some prof that had been drinking the Borland
Koolaid. I got to about page 40 and had found so many places where he
clashed with K&R that I gave up. An opinionated bloke too. I can't read
the authors name on the back binder from here & haven't got the giddyup to
do much more than go back to bed as its about 3:10 AM here, still snowing
intermittently. 10-11" so far since about 1 ish yesterday. Last time I
looked, the center of it was just sitting on Charleston, 100 miles south.
I was up and decided to try an older version of bru, 1.2, and its working
right now, but I think I see a problem before its done. Even with sas=ff
on the target drive, the FD.SEG's are filling up too fast.
{t2|07}/S1:filext
FILES and disk locations in directory
Filename FDsctr LSN sectors LSN Sectors LSN sectors
----------------------------- ------ ----------- ----------- -----------
brufile 04FF20 04FF21 000F 06FDF0 0200 076990 0800
077230 0D00 078000 7800
Although, if it will continue to use an allocation like the last fd.seg on
the 2nd line, it should be ok. Yeah, it hit 8000 then added another fd.seg
so it should be ok unless the filesize overflows, its only 4 bytes which
will test os9's BIG file handling. Its already at $B10F00, but a 4 byte
value can hold a bit over 4Gb and there is only around 140 megs to backup.
At $B10F00, its now about 7% completed. BTW, I consider that rollover at
$8000 a bug, but it may be a shrug too. I may be the only person in
history to generate a single 100+ megabyte file on a coco. Of course
probably 75% of it is just because I'm a packrat & really should do some
housekeeping. ;-)
> Willard
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Fifth Law of Procrastination:
Procrastination avoids boredom; one never has the feeling that
there is nothing important to do.
More information about the Coco
mailing list