HDTenEightyP/NetNews huggingface dataset:
From: hcp@csx.cciw.ca (H.C. Pulley)
Subject: Re: Floating point: printf "%g" bug?
Organization: Canada Centre for Inland Waters
Date: Wed, 23 Dec 1992 00:39:39 GMT

In article <1992Dec22.191630.20591@netlabs.com> lwall@netlabs.com (Larry Wall) writes:
>In article <1992Dec22.130028.27444@csx.cciw.ca> hcp@csx.cciw.ca (H.C. Pulley) writes:
>: I am sure you know, but just like there is 1/3 = .3333333..... in decimal, 
>: there are non-repeating numbers in binary, octal and hex too.  Numbers which 
>: repeat in one system, may not repeat in another.
>
>Certainly, but the integers that were used should be represented exactly
>in almost anybody's floating-point format.  Either %g is busted, or
>the cast from integer to double is busted.
>
>Larry Wall

You are absolutely correct, Larry.  This is a %g bug after all, *blush*.

The double 46.00000000000000 is also printed out as 46.00000000000001 by 
printf %g.  Thus it is NOT a cast bug, I think.

Harry
-- 
         hcp@csx.cciw.ca          |This message released|It takes all kinds,
   hcpiv@grumpy.cis.uoguelph.ca   |to the PUBLIC DOMAIN.|and to each his own.
----------------------------------+---------------------|This thought in mind,
Stay away from the DOS side, Luke!|Un*x don't play that.|I walk alone.
Newsgroups: comp.os.coherent
From: messina@netcom.com (Tony Porczyk)
Subject: Home mapping in Stevie
Organization: Messina Software
Date: Mon, 4 Jan 1993 05:01:37 GMT


Hi there,

Please disregard my previous post about MicroEMACS.  I decided it will
be easier to explain vi to the user after doing some magic to .exrc
then to teach them to perform finger acrobatics in 'me'.  On top of that
MicroEmacs has no easy way of inserting a file at a cursor (without
wiping out the buffer), outside of juggling buffers, which is not good
for newbie users.  Stevie seems very nice, really fast, and (to me)
much more intuitive than 'me'.  Anyway, I started playing with .exrc
and in half an hour had a nice working skeleton for someone who is not
a vi sympathizer :) There was just one problem - after a while my Home
assignment (to 0 in both modes, with ^[0 in the insert mode, of
course) stopped working.  I can't figure out what's going on.  I can
map it just fine to any other key, not to Home.  Yet, when I quote
Home using Ctrl-V it shows ^[[H, exactly what I have.  I have 30 key
mappings, and they all work perfectly.  I am totally baffled.  Would
someone want to take a look at it and perhaps even implement it on his
own system and tell me if it works (try it for a while - it worked on
mine for a short time).  Here is the uuencoded .exrc (quite short):

begin 666 .exrc
M<V5T"6YU;6)E<@IS970)=W)A<&UA<F=I;CTP(" *;6%P"1M;,'@).G<-"FUA
M< D;6S%X"3HA(&UO<F4@+V5T8R]H96QP+G9I#0IM87 )&ULR-$@)) IM87 )
M&ULR> DZ<V5T('=R87!M87)G:6X], T*;6%P"1M;,W@).G-E="!W<F%P;6%R
M9VEN/3$U#0IM87 )&ULT> EA7'1A8FQE+61O+6YO="UF;W)M870;"FUA< D;
M6S5X"6%<96YD+6]F+71A8FQE&PIM87 )&ULW> DZ;F5X= T*;6%P"1M;.'@)
M40IM87 )&ULY> DZ"FUA< D;6T@), IM87 )&UM5"08*;6%P"1M;5@D""FUA
M<"$)&ULP> D;.G<-"FUA<"$)&ULQ> D;.B$@;6]R92 O971C+VAE;' N=FD-
M"FUA<"$)&ULR-$@)&R0*;6%P(0D;6S)X"1LZ<V5T('=R87!M87)G:6X], T*
M;6%P(0D;6S-X"1LZ<V5T('=R87!M87)G:6X],34-"FUA<"$)&ULT> E<=&%B
M;&4M9&\M;F]T+69O<FUA= IM87 A"1M;-7@)7&5N9"UO9BUT86)L90IM87 A
M"1M;-W@)&SIN97AT#0IM87 A"1M;.'@)&U$*;6%P(0D;6SEX"1LZ"FUA<"$)
@&UM("1LP"FUA<"$)&UM5"1L&"FUA<"$)&UM6"1L""@H;
 
end


Ps: I just tried it on a SUN (with different codes, of course), and it
all worked beautifully.

t.
From: ed@invid.mwc.com (Ed Bravo)
Newsgroups: comp.os.coherent
Subject: Re: perl??
Date: 23 Dec 92 13:33:48 GMT
Reply-To: "Coherent operating system" <COHERENT@indycms.bitnet>

Perl is available from MWC. It is on the GNU TOOLS kit along with 50
or so tools.

mwc tech support


>
> (I hope this didn't go out twice!)
>
> vspicer@ccu.umanitoba.ca writes:
> >has anyone out there got perl working on coherent yet?
>
> I have a version (4.035 I think) running. It currently fails 6 of
> the tests. I've examined two of the failures so far and they are
> not to important and may be fixable, I'll be looking at the other
> four this weekend.
>
> The fact that I could get Coherent's 'sh' to run the Configure
> script says a lot about the shell's reliability and compatability!
> I'm impressed. (Minix's sh wouldn't do it)
>
> I am using it for other things and it's not done anything nasty so I
> suspect the other four problems are also not too important.
>
> If I get these fixed I'll say so here and see if I can find the
> original source to produce diffs. (I wish my floppy drives would
> work under Coherent!)
>
> --
> -----------------------------------------------------------------
> Brian Wallis <brianw@philips.oz.au>          Phone: +61 3 8813576
> Philips Public Telecommunications Systems      Fax: +61 3 8813577
> Melbourne, Australia
>
Newsgroups: comp.os.coherent
From: mike@mallard.demon.co.uk (Mike Zanker)
Subject: Re: Running f2c under Coh. 4.01 
Distribution: world
Organization: Mallard Independent Mail and News, Leeds, UK
Reply-To: mike@mallard.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Tue, 22 Dec 1992 18:20:55 +0000

In article <9212220036.AA16941@PCS.CNU.EDU> COHERENT@indycms.bitnet writes:

>> I've recompiled both libF77.a and libI77.a on my machine without
>> problems, but the problem still remains. The person who ported
>> f2c to Coherent obviously had it running - what am I doing wrong?
>
>        Have you looked in the libF77.a archive to see if oneexit is in there
>or in the other file?  I used f2c on my Linux machine and it seemed to work.
>I'll try it out tonight and see if I can find out how onexit is used/etc.
>I have a Fortran 77 compiler on my Linux system.  I wonder if you could get
>it for Coherent?  Its free and works great.  If you are interested, I might
>see where it can be obtained and maybe someone will port it to Coherent.

Thanks for your concern but I've sorted this one out already. f2c
is now working very well. The current version on raven will now
translate PRINT statements correctly, the only problem being an
occasional error message asking you to recompile f2c with the -f
flag. Once you do this it works great.

Regards,

Mike
-- 
Mike Zanker          |  Mail : mike@mallard.demon.co.uk
10 Mount Gardens     |
Leeds  LS17 7QN      |  Voice: +44 532 675893
United Kingdom       |
From: fredex@fcshome.UUCP (fred smith)
Newsgroups: comp.os.coherent
Subject: Re: C News Performance release (was: Re: Additional library directories)
Date: 23 Dec 92 20:14:27 GMT
Organization: What?!? Absolutely none!
X-Newsreader: TIN [version 1.1 PL8]

Alexander Shendi (shendi@saruman.stgt.sub.org) wrote:

: I am currently running the C News performance release (and using it to
: post this article). It took me some weeks to make it pass all 
: the regression tests. I managed to get along with Coherent 4.0's
: sed, awk, etc. ..., but had to make some ugly hacks to get them to do
: their job. However I had to use byacc to compile 
: /usr/src/cnews/libc/getdate.y (Coherent's yacc didn't work, I assume
: it is broken.). I don't know if you can use bison. I have had
: a brief look at the one from MWC's GNU-tools port, but the C
: compiler doesn't seem to like the code bison generates.

: BTW, I didn't have many problems with /bin/sh. The main culprit 
: was Coherent's make.

: The package has been running for approx. one month on my system. 
: It runs quite reliabily, though I sometimes get a 
: 'egrep: misplaced ^ in pattern' message in the error logs. This has 
: happend only twice and I have not been able to fix it.

: I have not particularly cared about the ihave/sendme stuff. So that 
: goes untested!.

: If anyone is intrested I will try to make some diffs and 
: upload them to mwcbbs. 

Yeah! Even though I'm (relatively) happy with wnews, now, It would be
great to see the diffs for cnews! Please put 'em on mwcbbs and/or raven!


Fred
Newsgroups: comp.os.coherent
Subject: Re: Cheap keyboard?
From: rmk@rmkhome.UUCP (Rick Kelly)
Organization: The Man With Ten Cats
Date: Sat, 26 Dec 1992 11:09:40 GMT
Reply-To: rmk@rmkhome.UUCP (Rick Kelly)

In article <1992Dec25.155048.30207@news.weeg.uiowa.edu> schwaigr@news.weeg.uiowa.edu (Jim Schwaiger) writes:
>The keyboard with which I have been having trouble is a Keytronics
>(recommended by MWC).  Although I am cheap, my keyset is not.

Yeah, Keytronics is supposed to be the cadillac of PC keyboards.

I picked the Northgate Omnikey/101 because that specific model number was
known to work on a system at MWC.

-- 

Rick Kelly	rmk@rmkhome.UUCP	merk!rmkhome!rmk	rmk@frog.UUCP
From: kestas@lith.UUCP (Kestutis Sliupas)
Subject: Re: Software Request
Newsgroups: comp.os.coherent
Date: 1 Jan 93 19:06:51 GMT
Distribution: world
Organization: Vacaville, CA

ed@invid.mwc.com (Ed Bravo) writes:
> >
> > Dear Santa,
> >   I would like an ANSI C compiler so I can do the homework for my
> > Advanced C Programming class, next term, under Coherent.
> >   I have been a good boy.
> >                  -Mike   (mtarrant@atk.com)
> >
> Well, Mikey, Santa has learned that MWC is currently porting GNU C and
> C++ for Coherent, which should be ready in January.  Both compilers are
> being offered in one package for $49.95, and can also be obtained
> inside a "Developer's Package" that saves you $40.00!  Just call
> Customer Support for more information, or EMail sales@mwc.com
> 
> Hope you had a nice Christmas!

--
Hi:
	Does anyone know what is in this "Developer's Package"? 

				Regards, Kestas
PS. Happy New Years to all!
 Kestutis Sliupas            x  (510) 231-1540 (work voice) 
 kestas%lith@infopro.com     x  (510) 231-1285 (work FAX) USA CA  
 kestas@infopro.com          kestas%lith@uunet.uu.net 
Xref: sparky comp.os.coherent:6458 comp.os.linux:21808 comp.sys.ibm.pc.hardware:34234
From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.os.coherent,comp.os.linux,comp.sys.ibm.pc.hardware
Subject: Re: Anyone interested in an intelligent serial board?
Date: 27 Dec 1992 11:32:40 GMT
Organization: /etc/organization
NNTP-Posting-Host: hal.gnu.ai.mit.edu


In article <725432970.27988@zooid.guild.org> ron@zooid.guild.org
(Secret Mud) writes:
>
> Will these wire-wraped board offer anything that the existing multi-
> port serial cards known to work with Coherent don't?  (Price, power?)

Hopefully, in the spirit of 386BSD, the design will be free for people
to share, modify, and use.  Of course, most people wouldn't want to
build one themselves, so they'd just purchase it.

I think the intent, BTW, was to make a PC board, not wire-wrapped, for
actual production.

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
Scheme  White heterosexual atheist male (WHAM) pride!
From: kestas@lith.UUCP (Kestutis Sliupas)
Subject: Archie/ftpmail shell available
Newsgroups: comp.os.coherent
Date: 21 Dec 92 04:43:41 GMT
Distribution: world
Organization: Vacaville, CA

Hi:

	I just got a shell script that runs ftp, archie, and
ftp-by-mail requests. It wraps around a MUA (Mail User Agent?)
and allows us po' uucp users to ftp just like the big boys.
At least sort-of.

	It's a 27K shar file. If there is enough interest, I
will post it. I'm not sure what the Net-Mind thinks about 
such postings, so I'll hold off for a week or so. Let me know
by mail or post, please!

				Regards, Kestas
 Kestutis Sliupas            x  (510) 231-1540 (work voice) 
 kestas%lith@infopro.com     x  (510) 231-1285 (work FAX) USA CA  
 kestas@infopro.com          kestas%lith@uunet.uu.net
From: rjt@softin.lonestar.org (Richard Threlkeld)
Newsgroups: comp.os.coherent
Subject: Re: Colorado Systems - Conversation
Keywords: When will MWC learn ... ???
Date: 22 Dec 92 20:21:35 GMT
Organization: Software Innovation, Arlington, Tx

hph@hphbbs.E.open.de (H.P. Heidinger, Essen) writes:

>  What MWC showed with COH' V4.x is real junk. You don't believe this?
> 
>   a) On my ol' 386sx/16 (YES, that slow!) with an ADAPTEC-1542B and 
>      WangTek 1/4"-SCSI-Tape running SCO-ODT 1.1, a whole 150MB tape 
>      restored in 45 minutes. (~60KB/s)
> 
>   b) On my COH'-Box 386/40-AMD (3 times as fast!, same SCSI controller) 
>      moving a 60MB NEWS-area to a new disk took nearly took 2 hours -
>      Disk-to-Disk!  (~8KB/s)
> 
> >Tape drives that connect to floppy controllers suck.
> 
> 
> 
> --

I too have an Adaptec 1542B, but I have a CMS Jumbo 250 also.  With the 
optional hardware board, I get 100Mb in about 14 minutes.  That's 
1.4Mb/min which seems to beat your SCSI performance.  In any case, 
the CMS drives are more popular in general.  I would guess that most
of COH's base are converts from MS-DOS and very few have SCSI 
controllers.  Even if they did have them, the added cost of a SCSI tape 
drive will often dictate which tape drive to get.  If it was free, I 
would choose a carosel of 5Gb Dat drives (200Gb total), but nothing is 
really free.
From: kenji@rcac.astem.or.jp (Kenji Rikitake)
Newsgroups: comp.os.coherent
Subject: Coherent 4.0.1 /dev/lp*: name incompatible with MS-DOS
Date: 22 Dec 92 04:38:30 GMT
Organization: RCAC Project, ASTEM RI, Kyoto, Japan

I tried to hook up Canon BJ-10v printer (Japanese version of
BJ-10-something sold in USA) on my Coherent using DOS LPT1: device
(port 0x378) But /dev/[r]lpt1 did not work - yes, as SHOWN IN THE
LEXICON, /dev/lpt1 WAS FOR PORT 0X3BC! This really irritated and
confused me - the correct answer was to hook it up on /dev/lpt2.

On my Gateway2000 486DX/33, printer ports are assigned as follows:
LPT1: -> 0x378
LPT2: -> 0x3bc
LPT3: -> 0x278

Note that above values may be different on other systems. Caveat
Utilitor.

// Kenji
--
Kenji Rikitake, cyberspace samurai
<kenji@rcac.astem.or.jp> <kenji@rd.macrofield.or.jp> <...!uunet!reseau!kenji>
From: magus@drktowr.chi.il.us (Louis Giliberto)
Newsgroups: comp.os.coherent
Subject: Re: v4.0 reboot command
Date: 25 Dec 92 08:45:01 GMT
Organization: DarkTower Software
X-Newsreader: TIN [version 1.1 PL6]

Michael Faurot (mfaurot@phzzzt.uucp) wrote:
: Sounds like you have a machine with an AMI BIOS in it.  If this is the
: case, it is a known problem with machines with this BIOS that warm
: boot commands don't always work.  I have a machine with a similar BIOS
: and it does this all of the time--even under DOS.  

I've heard that, too, but I have an AMI BIOS and Coherent reboots just
fine on them.  I believe it's a 1991 chip set.

-Louis
--
---------------------------------------------------------
 Louis J. Giliberto, Jr.   ! magus@drktowr.chi.il.us
   -sysadmin drktowr       ! lgilibe@orion.it.luc.edu
  Chicago, IL  USA         ! 
---------------------------------------------------------
Newsgroups: comp.os.coherent
From: zgeo0a@hou.amoco.com (Greg Ochab,PSC)
Subject: Re: Colorado Systems - Conversation
Reply-To: zgeo0a@hou.amoco.com
Organization: Amoco
Date: Thu, 24 Dec 1992 20:08:31 GMT

In article 01GSL54CYYEA8WW85Q@delphi.com, GREGL@DELPHI.COM (Greg Law) writes:
>For what it's worth, I paid less than $200 for a Colorado tape drive,
>which is significantly less than a SCSI tape drive of similar capacity.
>If I had an infinite budget (as some of you seem to profess you do), I
>I would have a 486DX/2-66, 2GB SCSI drives, a SCSI streamer, and Interactive
>UNIX. But I, like many others, do not have infinite budgets so we buy what
>we can afford.
>
>And what difference does it make whether or not the tape is so fast it
>smokes on a backup? I perform all of my backups late at night while I'm
>sleeping, so I could care less if it takes 10 minutes or 6 hours. Besides,
>it does the job very well thank you and I applaud MWC for developing drivers
>for the QIC-40 and QIC-80 drives. . . I suspect these are the drives most
>folks will use with Coherent because they are priced in a league with
>Coherent -- inexpensive.
>
>        -- Greg


I second everything he said.


---
Gregory E. Ochab, geochab@hou.amoco.com, 312/856-4889
                                                    Standard disclaimer applies.
From: ed@invid.mwc.com (Ed Bravo)
Newsgroups: comp.os.coherent
Subject: Re: dos commands help wanted
Date: 23 Dec 92 13:26:32 GMT
Reply-To: "Coherent operating system" <COHERENT@indycms.bitnet>

>
> In article <10DEC199213385254@nssdca.gsfc.nasa.gov>
>  batchelor@nssdca.gsfc.nasa.gov (Dave Batchelor, Space Phys. Data Facil.
>  301/286-2988) writes:
> >In article <18285@mindlink.bc.ca>, Mark_Ward@mindlink.bc.ca (Mark Ward)
>  writes...
> >>I need some help with the dos commands.  I have just installed Coherent 4and
> >>everything is working just fine.  However when I use the doscp and other dos
> >>commands I get the message " cannot open device c ".  I have my hard drive
> >>partioned so that primary dos partition is active and I use bootstrap to
 boot
> >>coherent.  I don't think I made any mistakes when installing.  I also
 checked
> >>out the file msdos and it contained the line c=\dev\at0a, so I assumed
> >>everything was fine, but I still can't use the dos commands.  Any help would
> >>be greatly appreciated.
> >
> >I had a similar problem, and MWC tech. support told me that permissions had
 to
> >be set to permit a regular user to access the DOS partition of the hard
 drive.
> >Try running your commands as root and if they work, then you know it's a
> >permissions problem.  root then has to use chown or something to declare that
> >you have permission to open C:
>
> This problem came up before.  Remember that MWC sets the C drive to those
> (restrictive) permissions for a reason: if you allow any user to have read
> access, then they can read any file on your DOS partition.  If you give any
> user write access, then any user can delete all the files on your DOS
> partition.  Since you have the root password, you can always type:
>
> su root dosdir c:/tmp
>
> and type in the root password when prompted.  This way, your system is still
> secure.  If you are going to be the only user on the system, or you can trust
> all the users on your system, then setting the permissions to allow all users
> to access the DOS partition is OK.
>
> In that case (you are sole user or all users are trusted), then you can use
> chmod on that partition to change the permissions.
>
> Harry
> --
>          hcp@csx.cciw.ca          |This message released|It takes all kinds,
>    hcpiv@grumpy.cis.uoguelph.ca   |to the PUBLIC DOMAIN.|and to each his own.
> ----------------------------------+---------------------|This thought in mind,
> Stay away from the DOS side, Luke!|Un*x don't play that.|I walk alone.
>


Please do not forget to uncomment the proper line in the msdos config file!

Located in  /etc/default  the file msdos must be modified.

mwc tech support
Newsgroups: comp.os.coherent
From: ray@rgm.com (Ray Mendonsa)
Subject: screen problems with less
Organization: RGM *nix - Sacramento, CA
Date: Wed, 30 Dec 1992 00:41:14 GMT


Ugh!  I just tried out the screen v3.2 utility from mwcbbs.  It's great
and will offer wonderful functionality for my remote users, but one
annoyance (there always is one):

The pager less acts really strange under screen.  Normally, one would
press the space bar to continue, or use one of the command keys.  But
instead, the key pressed echoes right after the status line (the current
cursor position) and is not digested until <ENTER> is pressed.  Pressing
enter to scroll one line, causes the status bar to scroll up, one more
line is displayed, and a new status bar is drawn.

Ugh. . .  I'm a terminfo dunce.  Is there a way to circumvent this
problem, or should I just suggest screen users set the pager to
'more' ?

'nn' and 'elm' pagers work perfectly.  Thanks in advance for any info.
-- 
/-Ray Mendonsa--ray@rgm.com--Administrator, rgm.com--Sacramento, CA---->
| 916/923-5013 8n1,HST ; login: new ; Public access Usenet
| There is only one truth, the absolute truth. | PGP v2.1 public key
| Real men do it in four lines or less.        | available upon request.
From: magus@drktowr.chi.il.us (Louis Giliberto)
Newsgroups: comp.os.coherent
Subject: Re: Questions regarding swapping and memory
Date: 24 Dec 92 12:39:54 GMT
Organization: DarkTower Software
X-Newsreader: TIN [version 1.1 PL6]

Udo Munk (udo@umunk.GUN.de) wrote:
: COHERENT 4.0 uses a flat 32 bit memory model, there is nothing
: like extended/expanded memory. You've linear access to the whole
: memory available in your system.

Er, just out of curiosity, do they pull the old "1 CS 1 DS make it look
like a PDP" trick?  The the virtual mem will be page swapped instead
of segment swapped I guess.
: 
: The limitation is that COHERENT supports a maximum of 16 MB memory
: yet, because of the DMA controllers with only 24 bit addresses.
: This is for ISA bus systems, maybe later it supports more memory
: with EISA bus systems.

Maybe I'm ignorant, but couldn't this be doubled almost instantly by
putting the text segment in higher memory where the DMA doesn't need
access and the data seg in lower where it could reach it?  For internal
kernel buffers you could just DMA to low physical, and page swap it to
where you need it.  After all, the OS has control over the descriptors
and could change the protection ring as needed.

I'm writing an OS for class, and my head is swimming with Intel "logic"
right now.  Ignore me if I don't make sense.  If I do, let me know I'm
on the right track.

-Louis
--
---------------------------------------------------------
 Louis J. Giliberto, Jr.   ! magus@drktowr.chi.il.us
   -sysadmin drktowr       ! lgilibe@orion.it.luc.edu
  Chicago, IL  USA         ! 
---------------------------------------------------------
Newsgroups: comp.os.coherent
Subject: Re: GCC etc
From: rmk@rmkhome.UUCP (Rick Kelly)
Organization: The Man With Ten Cats
Date: Fri, 25 Dec 1992 14:15:10 GMT
Reply-To: rmk@rmkhome.UUCP (Rick Kelly)

In article <9212235978@drktowr.chi.il.us> magus@drktowr.chi.il.us (Louis Giliberto) writes:
>Greg Comeau (comeau@csanta.attmail.com) wrote:
>: That's exactly what Comeau C++ 3.0 With Templates does (that is, we are
>: literally based upon AT&T USL cfront).
>
>Now it's the Novell USL cfront ;)  Hope you guys like paying royalties
>cuz Novell will probably start licensing.

USL did already.  Cfront ain't free.

-- 

Rick Kelly	rmk@rmkhome.UUCP	merk!rmkhome!rmk	rmk@frog.UUCP
From: brianw@philips.oz.au (Brian Wallis)
Date: Sun, 20 Dec 92 12:19:28 GMT
Organization: Philips Public Telecommunications Systems, Melbourne, Australia
Subject: Bug in fseek or fread??

The program below when compiled and run on coherent successfully completes the
second read and returns 4 bytes that are 0. On HP-UX 8.02 (at work) it returns
0 from the second read and the 4 bytes are still what they were before (ie the
buffer hasn't been overritten).

The HP-UX behaviour is what I would expect. Is this a bug? How does one report
a suspected bug to MWC (is there a mail address at mwc.com for bug reporting).


----
#include <stdio.h>

main(argc,argv)
  int argc;
  char *argv[];
{
  FILE *fp;
  int i;
  char buf[100];

  if((fp=fopen(argv[0],"r")) == NULL){
    perror(argv[0]);
    exit(1);
  }
  i=fread(buf,1,4,fp);
  printf("fread returned %d buf=%02x%02x%02x%02x\n",
	i,buf[0],buf[1],buf[2],buf[3]);
  if(fseek(fp,100000L,SEEK_SET)==-1){
    perror("fseek()");
    exit(1);
  }
  i=fread(buf,1,4,fp);
  printf("fread returned %d buf=%02x%02x%02x%02x\n",
	i,buf[0],buf[1],buf[2],buf[3]);
}
-- 
-----------------------------------------------------------------
Brian Wallis <brianw@philips.oz.au>	     Phone: +61 3 8813576
Philips Public Telecommunications Systems      Fax: +61 3 8813577
Melbourne, Australia
Newsgroups: comp.os.coherent