HP3000-L Archives

December 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Boyd <[log in to unmask]>
Reply To:
Mark Boyd <[log in to unmask]>
Date:
Wed, 20 Dec 2000 13:03:58 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (51 lines)
the fine print reads: 
if a message file is full and there a no reader, the process waits if there
is an fcontrol=45 in effect or if this is the first fwrite after an
fopen/hpfopen call. Otherwise, ccg(0) is returned.

...so if the file is full and there is a reader, the default is to wait
unless there is an fcontrol 45 in effect?
-----Original Message-----
From: TRAPP,RICH (Non-A-Loveland,ex1)
[mailto:[log in to unmask]]
Sent: Wednesday, December 20, 2000 12:56 PM
To: 'Mark Boyd'; [log in to unmask]
Subject: RE: fwrite to message file. Help! Cecil! Help!


Mark,
  I think it's FCONTROL(fnum, 45, ZERO) on the file before the fwrite. 
Read the fine print in the manual...this is from memory (an the quick
reference guide!).

RAT
The default behavior for MESSAGE files is to wait.  

 

Rich Trapp <mailto:[log in to unmask]>  

 
Consulting for Agilent Technologies, Loveland, Colorado.

Managed Business Solutions <http://www.mbsnav.com/>  
200 South College Avenue 
Fort Collins, Colorado 80524-2811 
970.679.2221 (voice) 
970.669.3071 (fax) 



-----Original Message-----
From: Mark Boyd [mailto:[log in to unmask]]
Sent: Wednesday, December 20, 2000 1:17 PM
To: [log in to unmask]
Subject: fwrite to message file. Help! Cecil! Help!


When writing to a message file (variable length records, one reader) that
has reached eof, the fwrite waits.  Is there a way to make the fwrite fail
insted of waiting?

Thank you.

ATOM RSS1 RSS2