HDTenEightyP/NetNews huggingface dataset:
From: session@seq.uncwil.edu (Zack C. Sessions)
Subject: Re: OS9 C problem.
Organization: Univ. of North Carolina @ Wilmington
Date: Mon, 6 Apr 1992 18:07:09 GMT

rlm7638@tamsun.tamu.edu (Jack McKinney) writes:

>    I have a Color Computer III,  running OS-9 Level II. I am trying to
>print a 'long' as a hexadecimal number in C.  Here is the code I am us-
>ing:

> printf("%08x- ",addr);

You will need to include a reference to pflinit() just to pull in the
necessary code, and then I think you will also need to use the "l" modifuer
on the x printf code, ie:

	printf("%08lx- ",addr);

I';ve never used it with the x operator, but I am certain you need it
with the d operator, so it may be needed here as well.

-- 
Zack Sessions
sessions@seq.uncwil.edu
csc450zcs@vxc.uncwil.edu
University of North Carolina at Wilmington
From: carl@syscon.rn.com (Carl Kreider)
Newsgroups: comp.os.os9
Subject: Re: gcc + fopen() = bug?
Date: 13 Apr 92 17:40:14 GMT
Organization: Syscon International - Corporate Headquarters

eah1@gauguin.wustl.edu (Edward Anthony Hutchins) writes:

>I figured it out. Just remove the TOTALLY STANDARD "rb" mode and
>replace it with "r".

Perhaps you could define "TOTALLY STANDARD"?  The OS-9 libs (which are used
even with gcc) are V7 or K&R derived and therefore perform correctly by not
honoring the PC hack of "rb".

>Great. Does anyone know if the omission of
>the "b" means that os-9 doesn't do any screwy translation of file
>streams? I assume not...

Yes, like Unix and unlike certain other brain dead OSes, OS-9 does no screwy
translations - they are just bytes.

>Edward Hutchins, eah1@cec1.wustl.edu            | other side of card

-- 
Carl Kreider       Usenet   ....!nstar!syscon!carl
CIS  71076,76      Internet  carl@syscon.rn.com
Newsgroups: comp.os.os9
From: bcwhite@demorgan.waterloo.edu (Brian White)
Subject: Re: gcc + fopen() = bug?
Organization: University of Waterloo
Date: Fri, 10 Apr 1992 17:13:02 GMT

In article <1992Apr9.215910.18539@wuecl.wustl.edu> eah1@gauguin.wustl.edu (Edward Anthony Hutchins) writes:
>Does anyone know if the omission of
>the "b" means that os-9 doesn't do any screwy translation of file
>streams? I assume not...

Right-O!  Under OS-9, all files are identical (even between SCF, RBF, & SBF),
so there is never any character translation on what we would term "ascii"
files.

>Edward Hutchins, eah1@cec1.wustl.edu            | other side of card

                                        Brian

-------------------------------------------------------------------------------
INTERNET:    bcwhite@sunee.waterloo.edu   |                                    
DELPHI:      BrianWhite                   |       #include <disclaimer.h>      
COMPUSERVE:  70313.3344 (@compuserve.com) |                                    
-------------------------------------------------------------------------------
      Any given  program contains at least  one bug and can  be shortened
            by one  instruction.   Therefore, all  programs can  be
                shortened  to one instruction that won't  work.

Newsgroups: comp.os.os9
From: lydic@ka8lvz.uucp (lydic)
Subject: Re: What is the format of ROF modules
Organization: organization
Date: Fri, 17 Apr 1992 05:16:33 GMT

In article <15April.1992.11764@cid.aes.doe.CA> afsl002@cid.aes.doe.CA (Marc Gagnon) writes:
>What is the ROF (relocatable object format) format?
>I would like to get a complete description of the
>headers and other informations.
>Thanks.

   The ALD (Assembler/Linker/Debugger) Manual contains an entire section
   describing the ROF format (68K version).  I have several versions of
   the manuals and it is a chapter in one and an appendix in the other.

   -.. .

   John W. Lydic Jr              lydic@ka8lvz OR osu-cis!n8emr!ka8lvz!lydic
                                 jwl@ka8lvz   OR osu-cis!n8emr!ka8lvz!jwl
   ... -.-
From: afsl002@cid.aes.doe.CA (Marc Gagnon)
Newsgroups: comp.os.os9
Subject: What is the format of ROF modules
Date: 15 Apr 92 13:50:55 GMT
Organization: Environment Canada (CMC), Dorval, QC

What is the ROF (relocatable object format) format?
I would like to get a complete description of the
headers and other informations.

Thanks.
Newsgroups: comp.os.os9
From: stevenw@disk.uucp (Steven Weller)
Subject: Re: Lint for OSK?
Organization: Digital Information Systems of KY
Date: Sun, 12 Apr 1992 17:49:27 GMT



Re: Lint for OSK

We sell FlexeLint (PC-Lint from Gimpel in a portable form).  It will
detect hundreds or errors, many of which you will not know were
possible.

-- 
: Phone: (502) 425 9560   <<  Steven Weller  >>   Fax: (502) 426 3944 :
:   Windsor Systems, 2407 Lime Kiln Lane, Louisville, KY, 40222 USA   :
:      "A substance almost, but not quite, entirely unlike tea"       :
:        stevenw@disk.UUCP or uunet!ukma!corpane!disk!stevenw         :
From: guest@circe.es.flinders.edu.au (Peter Turner)
Newsgroups: comp.os.os9
Subject: How do you find/save a screen?
Date: 14 Apr 92 11:14:26 GMT
Organization: Flinders University
Originator: guest@circe.es.flinders.edu.au

Can someone please let me know how to locate and save a Coco 2 window screen
(text or graphics) created using Basic09?  (And, of course, how to redisplay
it!)

Thanks.
From: rlm7638@tamsun.tamu.edu (Jack McKinney)
Newsgroups: comp.os.os9
Subject: OS9 C problem... Thanks!
Date: 9 Apr 92 17:30:53 GMT
Organization: Texas A&M University, College Station


     Thanks to everyone who responded to my post. I believe I have the problem
solved, now.


+---------------------------------------------------+------------------------+
| "My problem is I need to discipline myself. I was | Jack McKinney          |
|  having this large Dutch woman do it..."          | rlm7638@tamsun.tamu.edu|
+---------------------- -Emo Philips ---------------+------------------------+
Newsgroups: comp.os.os9
From: eah1@gauguin.wustl.edu (Edward Anthony Hutchins)
Subject: Re: gcc + fopen() = bug?
Organization: Washington University, School of Engineering, St. Louis MO
Date: Thu, 9 Apr 1992 21:59:10 GMT

I figured it out. Just remove the TOTALLY STANDARD "rb" mode and
replace it with "r". Great. Does anyone know if the omission of
the "b" means that os-9 doesn't do any screwy translation of file
streams? I assume not...
	On a related topic, if anyone has a quick-and-easy way of
reading directory entries from C, I'll fixup my version of "ls" and
post it to hermit@cs.wisc.edu.
	- Ed
_____________________________________________________________________________
:-)  ('')  (-:  (,,)  :-)  ('')  (-:  (,,)  :-) | see lidflip instructions on
Edward Hutchins, eah1@cec1.wustl.edu            | other side of card
Newsgroups: comp.os.os9
From: ignatz@wam.umd.edu (Mark J. Sienkiewicz)
Subject: pipeman and "broken pipes"
Originator: ignatz@rac2.wam.umd.edu
Organization: University of Maryland at College Park
Date: Wed, 15 Apr 1992 19:45:58 GMT

I've noticed some "weird" behaviour using OS9 pipes.  Consider a typical
_Unix_ command that might look like:

	$ myprog | grep pattern | less

where 'myprog' is some random program, 'grep pattern' is just like OS9,
and 'less' is a program that displays its input a page at a time and has
commands to scroll forward and back through the data.

If I kill the last program of a pipeline (in this case 'less'), this causes
a "broken pipe".  When a program tries to write to that pipe, it is killed
by a signal SIGPIPE, because no process has the pipe open for reading.  In
this example, 'grep' is killed next time it writes to the pipe.  The
same kind of events then kill 'myprog'.

The reason the Unix kernel can do this is that Unix pipes have two ends:
one end is write only and the other is read only.  When all file descriptors
for the read end are closed, the pipe is "broken".

This is interesting to me because of this _OS9_ sequence:

	$ myprog ! grep pattern ! less

where I used 'less' to look at some of the output and then I quit less.
After this, I found that 'myprog' and 'grep' were still running.  Unlink 
Unix, OS9 simply blocked the grep process when the output pipe filled
up, which in turn let the output of myprog fill up that pipe.

So at least neither processes is hogging the CPU, but they are still
hanging around using process table slots and memory.

Apparently this is because OS9 pipes are single-ended.  i.e. there is
only 1 file descriptor when you make a pipe and you can use that for
either read or write, therefore pipeman can't tell when there are no
readers for the pipe.

Now to the question:  Does anybody have any brilliant solutions that either
1) make these processes go away without me having to type "procs" and kill
each of them, or 2) have some other "nice" way of dealing with it?

Solutions that involve minor hacking on some shell (e.g. the one on
hermit) are in the domain of what I am looking for.  Unfortuneatly,
writing my own pipe file manager is more work than I have time for.

TIA

Mark.
From: jejones@microware.com (James Jones)
Newsgroups: comp.os.os9
Subject: Re: gcc + fopen() = bug?
Date: 14 Apr 92 12:29:04 GMT
Organization: Microware Systems Corp., Des Moines, Iowa

In article <1992Apr13.174014.29305@syscon.rn.com> carl@syscon.rn.com (Carl Kreider) writes:
>eah1@gauguin.wustl.edu (Edward Anthony Hutchins) writes:
>
>>I figured it out. Just remove the TOTALLY STANDARD "rb" mode and
>>replace it with "r".
>
>Perhaps you could define "TOTALLY STANDARD"?  The OS-9 libs (which are used
>even with gcc) are V7 or K&R derived and therefore perform correctly by not
>honoring the PC hack of "rb".

ANSI had to accommodate the "brain dead OSes" referred to later in the quoted
message, and hence it provides for the "b" to let the standard I/O routines
know whether to play various games (e.g. turning CRLF into '\n' on input and
turning \n into CRLF on output).  A conforming implementation on an operating
system that doesn't have to worry about that sort of thing should accept, but
ignore, the "b".

	James Jones
From: bm062@cleveland.Freenet.Edu (Jay Jacobs)
Newsgroups: comp.os.os9
Subject: Re: Lint for OSK?
Date: 11 Apr 92 20:48:37 GMT
Article-I.D.: usenet.1992Apr11.204837.15383
Organization: Case Western Reserve University, Cleveland, Ohio, (USA)


I am looking for any and all os9/68k utilities and a shell bourne or c.
I tried using archie at McGill,but  the search came up empty. I am looking
for anonymous ftp sites. I am specifically looking a script utility similar
to the one found on unix which stores a shell session output and input in
text file. The only site I've been able to get to is hermit.cs.wisc.edu.
Are there any other sites out there?

Thanks in advance.

Jay
From: philb@cats.ucsc.edu (Philip Brown)
Newsgroups: comp.os.os9
Subject: Lint for OSK?
Date: 7 Apr 92 07:55:57 GMT
Organization: University of California, Santa Cruz


  I'm looking for a REAL lint.. not just a lousy brakect matcher.
I used archie, and it gave me a few places.. but for some obscure reason, 
the stuffs have been deleted.
in osaka-u's bsd-sources, it HAS lex, yacc, dbx.. and a whole bunch of
stuff.. and a lint DIRECTORY.. but the source is GONE!!

I SUPPOSE it would be possible for me to make a semi-decent one
  (defined as
     checks for unused variables,
     assignments as opposed to comparisons in if/while, etc
     type matching errors
     [and if in same file, FUNCTION prototypes]
   )

but it would take me an inordinate amount of time, and I'm kinda busy as
it is :-)

did I mention I only care about an OSK lint, and not a coco one? :-)

   Philip
-- 
"If you're going to get uptight, you may |philb@cats.ucsc.edu
as well go do Karate!"                   |philb@soda.berkeley.edu
Anonymous T'ai Chi instructor            |
Newsgroups: comp.os.os9
From: bcwhite@demorgan.waterloo.edu (Brian White)
Subject: Re: MM/1 sound port
Organization: University of Waterloo
Date: Sun, 5 Apr 1992 17:25:48 GMT

Radio Shack sells a 5-pin din to 4xRCA jack that works.  Sorry I don't have
the part number, but you should find it if you just look around for a bit.

                                        Brian

-------------------------------------------------------------------------------
INTERNET:    bcwhite@sunee.waterloo.edu   |                                    
DELPHI:      BrianWhite                   |       #include <disclaimer.h>      
COMPUSERVE:  70313.3344 (@compuserve.com) |                                    
-------------------------------------------------------------------------------
      Any given  program contains at least  one bug and can  be shortened
            by one  instruction.   Therefore, all  programs can  be
                shortened  to one instruction that won't  work.

-- 

                                        Brian

-------------------------------------------------------------------------------
Newsgroups: comp.os.os9
From: darcy+@ERIE.EDRC.CMU.EDU (Darcy Bullock)
Subject: Task over run
Date: Tue, 07 Apr 92 12:44:45 GMT
Organization: School of Computer Science, Carnegie Mellon
Originator: darcy@ERIE.EDRC.CMU.EDU

I am using the alm_cycle() to send a periodic signal that wakes up a task
every 4s.  When I complete the task, I would like to verify that another
signal has not arrived (which would constitute a task overrun).  Is there a
function call that can provide this check in os9?

Thanks,

-------------------------------------------------------------------------
Darcy Bullock                                 Phone:    412/268-3781
Carnegie Mellon University                    FAX:      412/268-7813
Department of Civil Engineering               Internet: darcy@cs.cmu.edu
Pittsburgh, PA  15213
-------------------------------------------------------------------------
From: kdarling@garfield.catt.ncsu.edu (Kevin Darling)
Newsgroups: comp.os.os9
Subject: Re: Want OS9 disk driver for Atari ST/Supra
Date: 9 Apr 92 06:59:05 GMT
Organization: North Carolina State University

Mitch.Bradley@Eng.Sun.COM (Mitch Bradley) writes:
> I have an Atari ST with a Supra hard disk drive.  [...]
> Does anybody have a modified driver that will work with the Supra drive?

I think there was a Pipelines article on this, but I can't seem to find it.
Anyway, these are the Supra patch for sthd ed 13 (by doing a comparison)...

--- original
< 0x000005FA+r7>082E000207C4     btst.b #2,1988(a6)
< 0x00000600+r7>6606             bne.b 0x608+r7->
< 0x00000602+r7>003C0001         ori.b #1,ccr
< 0x00000606+r7>4E75             rts
< 0x00000608+r7>08930007         bclr.b #7,(a3)
< 0x0000060C+r7>08AE000207C4     bclr.b #2,1988(a6)
--- supra
> 0x000005FA+r7>08B90007FFFFFA11 bclr.b #7,(0xFFE525B1+r7).l
> 0x00000602+r7>08AE000207C4     bclr.b #2,1988(a6)
> 0x00000608+r7>6608             bne.b 0x612+r7->
> 0x0000060A+r7>4A2E07C4         tst.b 1988(a6)
> 0x0000060E+r7>671A             beq.b 0x62A+r7
> 0x00000610+r7>60E2             bra.b 0x5F4+r7

I hope that's everything!  kevin <kdarling@catt.ncsu.edu>
From: mistik@grex.ann-arbor.mi.us (Mustafa Soysal)
Newsgroups: comp.os.os9
Subject: Re: Task over run
Date: 9 Apr 92 18:03:09 GMT
Organization: Cyberspace Communications/GREX Public Access Unix +1 313 761 3000

In article <1992Apr07.124445.272051@cs.cmu.edu> darcy+@ERIE.EDRC.CMU.EDU (Darcy Bullock) writes:
>I am using the alm_cycle() to send a periodic signal that wakes up a task
>every 4s.  When I complete the task, I would like to verify that another
>signal has not arrived (which would constitute a task overrun).  Is there a
>function call that can provide this check in os9?
>
>Thanks,
>
>-------------------------------------------------------------------------
>Darcy Bullock                                 Phone:    412/268-3781
>Carnegie Mellon University                    FAX:      412/268-7813
>Department of Civil Engineering               Internet: darcy@cs.cmu.edu
>Pittsburgh, PA  15213
>-------------------------------------------------------------------------
>

To my knowledge (68K), you can install a signal handler in your own process
code which would queue incoming signals into a data structure of your own
(in your case just a flag of any signal received might do, depending on what
types of signals your process is designed to receive).

If you are doing something uninterruptible, then I don't know an answer.
(although the clock would/would-not interrupt your process while running,
depending on how much tweaking you do, both of which seem to disturb your
processes function.  There might be other processes as well, hogging the
CPU. You can e-mail with more data if you want to discuss more details)

Mustafa Soysal
Newsgroups: comp.os.linux
From: sverkerw@Minsk.docs.uu.se (Sverker Wiberg)
Subject: Re: LINUX FAQ
Keywords: linux
Organization: UDAC, Uppsala, Sweden
Date: Mon, 6 Apr 1992 08:07:05 GMT

cummings@hammer.Prime.COM (Kevin Cummings) writes:

> - There is no "jmp short", the opcodes are "j" for a short jump and
>   "jmp" for a long one.

> - "jmpi" is a jump with a segment:offset pair. I don't know how this
>is
>   written in DOS assembly.

MASM and TASM talks about short, near and far jumps, where a 
short jump is +/- 128 (could be +130/-126...) bytes, a near jump
is within the current code segment (reload ip only), and a far
jump is anywhere in address space (reload cs too).

Ordinarily, you don't specify what sort of jump you want, so
	JMP foo
becames a short, near, or far jump depending on how far away
the label foo is (the shortest one that will reach, is picked).
If you want to defeat this feature you write one of
	JMP short foo
	JMP near foo
	JMP far foo
which will assemble correctly, or complain if stretched too far.

Debuggers (DOS debug, Turbo Debugger) usually give the fully
qualified op-code to tell the user exactly what sort of jump it
is.

--
----------------------------------------------------------------------------------------------
#include<stddisclaim.h>				Every interesting data structure is recursive.
sverkerw@mizar.docs.uu.se (Sverker Wiberg)		/Cons
----------------------------------------------------------------------------------------------
From: knapka@athena.cs.uga.edu (Joseph Knapka)
Newsgroups: comp.os.linux
Subject: virtual consoles/pty's
Date: 17 Apr 92 06:46:10 GMT
Organization: University of Georgia, Athens

Here's a silly question: When I boot linux, it says "8 virtual
consoles, 4 ptys". I know what ptys are, I think -- the guys I get to
by alt-f[1-4]. So my question is, "What, exactly, is the difference
between a pty and a virtual console?"

Thanks,
Newsgroups: comp.os.linux,comp.sys.ibm.pc.hardware
From: sonny@charybdis.harris-atd.com (Bob Davis)
Subject: Help: Straighten Me Out on SCSI Controller Cards (Host Adapter?)
Reply-To: sonny@trantor.harris-atd.com (Bob Davis)
Organization: Advanced Technology Dept., Harris ESS, Melbourne, FL
Date: Tue, 7 Apr 1992 02:44:52 GMT

	I am *so* confused about SCSI -- all aspects of it. And I can't
seem to locate answers. First, what do I get for the $250 for an Adaptec 1542
SCSI controller that I don't get with the $150 controllers , or with the $35
Seagate ST02?
	I have an ST02 but I cannot get it to format a drive. Do I need
a special piece of low level formatting software? I've tried using DOS
DEBUG and g=C800:5 to run the BIOS format routine in the ST02 card ROM
but it seems never to recognize that a hard drive is connected. I've
programmed the Drive address to 000 for logical unit 0, but the BIOS
routine keeps insisting that "unit 0 is not connected to this controller"
when I tell it to format unit 0.
	If you can recommend a file on the net, or a book, or any material
for me to read that might make someone who is intimately familiar with
LL formatting, partitioning, and FORMATting MFM and RLL hard drives feel
comfortable with doing the analogous things to a SCSI drive, I'd like
to hear about it. (How do I tell the system about Cylinders, Heads, and
Sectors on a SCSI drive? How do I set up CMOS to tell it what kind of
drive is connected?) I am lost...

	Thanks,

_____________________________________________________________________________
Bob Davis, UofALA alum \\ INTERNET: sonny@trantor.harris-atd.com  |  _   _  |
Harris Corporation, ESS \\    UUCP: ...!uunet!x102a!trantor!sonny |_| |_| | |
Advanced Technology Dept.\\ AETHER: K4VNO          |==============|_/\/\/\|_|
PO Box 37, MS 3A/1912     \\ VOICE: (407) 727-5886 | I SPEAK ONLY | |_| |_| |
Melbourne, FL 32902 USA    \\  FAX: (407) 729-3363 | FOR MYSELF.  |_________|
From: pthoms@castle.ed.ac.uk (P Thomson)
Newsgroups: comp.os.linux
Subject: Bad blocks (Help Please !)
Date: 13 Apr 92 22:13:08 GMT
Organization: Edinburgh University

Hi, Can some one tell me if it is possible to hack/mask out bad blocks
after 15+ Mbytes of Linux is installed, without having to take the system
down and start again


	Thanks in advance Peter.


P.S also a note on tar and /dev/at0.  This might not be worth much to
anyone but it bugged me for a couple of hours today.  If you use rawrite
to write a large file to a floppy.  It is best to reformat the floppy
afterwards for the next time you are going to use it.  I kept getting
tar skipping..  messages in my tar files when I knew there should'nt be any
Formatting the disk cured the problem.
From: wjb@cogsci.cog.jhu.edu (Bill Bogstad)
Newsgroups: comp.os.linux
Subject: Re: expr (GNU shellutils)
Keywords: Softscroll
Date: 17 Apr 92 16:19:35 GMT
Organization: Department of Cognitive Science, JHU

In article <1992Apr16.204258.13720@odin.diku.dk> dingbat@diku.dk (Niels Skov Olsen) writes:
>expr is in the shellutils-1.6.tar.Z (or therabouts) on prep.ai.mit.edu.
>In this package are some other nice utils too.
>
>I compiled it with GCC2.1 with only small adjustments to the makefiles
>(I don't have echo) and a little finetuning in obvious places. I didn't
>make notes as I went along, so I don't remember the exact steps. It 
>should't be a problem though. Mail me if it is and I will try to 
>reconstruct what I did.

	Well, I'm trying to compile it with GCC 1.40 and have found the
following problems so far.

1. no echo - put the following in your /bin directory

	#!/bin/sh

	echo $*

2. va_list redefined in stdio.h vs. stdarg.h - I modified stdio.h to
	include stdarg.h rather then defining va_list itself.

3. No bison - get the binaries out of binaries/compilers on tsx-11.mit.edu
	(I haven't actually gotten this far yet...)

If I get a chance tonight, I'll add more to the list above...

				Bill Bogstad
				wjb@cogsci.cog.jhu.edu
From: zlsiial@uts.mcc.ac.uk (A. V. Le Blanc)
Newsgroups: comp.os.linux
Subject: Re: tar files on floppy.
Date: 14 Apr 92 08:03:55 GMT
Followup-To: LeBlanc@mcc.ac.uk
Organization: Computing Centre, University of Manchester

In article <1992Apr13.104934.5745@ericsson.se> etxlli@eos.ericsson.se (Lars Lindner) writes:
>
>When I have both boot and root images installed on HD and i want to
>install more SW downloaded as .tar.Z files, in what way vill i get
>them on a floppy to be able to install them on my Linux machine.

If you have both Linux and MS-DOS on the same machine, the simplest
course of action is to use mtools (i.e., mread, mcopy, or mtype) to
access them.

If you do not have both Linux and MS-DOS on the same machine, the
simplest course of action is to copy the files to a dos disk, then
use mtools to read the floppy.

>* Shall i use "rawrite" from DOS to put the files on floppy?

The 'rawrite' program is intended for use with disk images.  It CAN
write a tar file to a disk, and in fact this is how I originally
installed Linux on my machine, but it is probably simpler to use
copy and mtools.

>* I rememer reading something like "Do not rawrite compressed files.".
>  Why??

The problem is, I think, that compress is written to read from a
file or a stream, and that its I/O does not handle a raw read from a
disk correctly.  Anyway it didn't when I first installed Linux.

For larger files, it would be best to split them up, copy them over
on separate floppies, and concatenate them, that is, assuming that
you have no DOS partition on your Linux machine.  Unfortunately I
cannot point you to any standard utility running on DOS which would
do this painlessly.  I did this once with a GNUish DOS dd, which I
found in the anonymous ftp at, I believe, grape.ecs.clarkson.edu.

     -- Owen
     LeBlanc@mcc.ac.uk