Subject: | |
From: | |
Reply To: | |
Date: | Mon, 26 Nov 2001 07:30:19 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Have done this on the HP1000 to emulate message files and circular files. Non-extensible file. Keep two record pointers, first record and last record. First record is the oldest, and gets sent for a read. Last record is oldest; increment it (with wraparound) before writing an new record to where it points. When "file" is empty set them both to zero. For consistency, use the same error values as would MPE to report error conditions. It doesn't take a lot of code unless you want to emulate open/close and #readers/#writers protocols. You can easily implement non-destructive reads and file info.
-Dave D
[log in to unmask] on 11/26/2001 05:56:00 AM
To: [log in to unmask]@Internet
cc: (bcc: David T Darnell/CO/KAIPERM)
Subject: Re: [HP3000-L] Named pipes vs. MSG files
Gavin Scott wrote:
>
> Once again, pipes turn out to make rather lousy Message Files.
>
> G.
>
Yes. This is an opportunity. The way of Unix is to create
tools that provide better building blocks for all. Someone
could implement much of the MPE Message concept on Unix by taking
a pair of named pipes with a program (deamon) in the middle
to handle the FIFO buffering of data to disk. The same deamon
could be used to handle any number of "message pipes" and be very
general.
Richard
--
Richard L Gambrell, Senior Information Technology Consultant and
Director of Computing Systems and Networks
Information Technology Division, University of Tennessee at Chattanooga
Fax: 423-755-4150 Support Help-Desk: 423-755-4000
Direct phone: 423-755-5316 ITD Business Office: 423-757-1755
Mobile (urgent): 423-432-5122 Main UTC: 423-755-4111
Email: [log in to unmask]
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|