[gnu.g++.lib.bug] File::File

mpope@augean.oz.au (Michael T Pope) (07/14/89)

(G++/Gcc/Libg++ 1.35, Sun 4, SunOS 3.x)
The a_createonly argument to File::File fails due to bad arguments to
open() in File.cc--- O_EXCL needs O_CREAT as well.  Fix by either converting
File.cc:94 to---

  sa_createonly = O_CREAT|O_EXCL

or File.cc:112 to---

  case a_createonly:  return arg | sa_create | sa_createonly;

---whichever makes best sense.

Cheers,
Mike Pope

dl@G.OSWEGO.EDU (Doug Lea) (07/15/89)

Thanks. You are right that this seems necessary on SunOS anyway. On my
old vax, running straight 4.3 it wasn't, but it doesn't seem
to hurt either to add O_CREAT. I'll put in it.


-Doug