HP3000-L Archives

July 2002, Week 1

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:
Ken Hirsch <[log in to unmask]>
Reply To:
Ken Hirsch <[log in to unmask]>
Date:
Mon, 1 Jul 2002 17:35:28 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
> 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 *

ATOM RSS1 RSS2