> The O_EXCL option for open() doesn't seem to appear in the
> HPC/iX Library Reference Manual (E1092) for some reason, though it's
defined
> in FCNTL.H.SYS if _POSIX_SOURCE is defined.
Have you tried it to see if it works? Or are you worried that it's not
atomic?
> It seems the only way to get the behavior I need is to use HPFOPEN() with
a
> domain of 4 ["new permanent file"] but I don't see any way to turn the MPE
> file number into a FILE* stream.
You should be able to
fdopen(_POSIX_FILENO(fnum), "a")
although I haven't tried it.
Ken Hirsch
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *