New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open_excl : open_flag doesn't work #3450
Comments
Comment author: administrator
Thanks for your bug report. From the man page for the open() system call: The semantics of Unix system calls is that you have to add Open_creat for -- Damien |
Comment author: administrator fixed by better documentation DD 2005-01-27 |
Comment author: administrator On Thu, 27 Jan 2005 18:02:07 +0100 (MET), Damien Doligez
Thanks! I had to add Open_creat anyway (as I noticed) so it is not a Cheers, /Josef |
Original bug ID: 3450
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Josef Svenningsson
Version: 3.08.1
OS: Windows/Cygwin
Submission from: dhcp-246-17.nomad.chalmers.se (129.16.246.17)
I want my program to fail when trying to open an already existing file. So I use
the following command:
open_out_gen [Open_wronly;Open_excl;Open_text] 0o666 filename
(This is a variation on open_out with Open_excl added instead of Open_trunc.)
However, opening an already existing file works perfectly fine! The program
doesn't fail.
Thanks,
/Josef
The text was updated successfully, but these errors were encountered: