* fix #17888: remove undefined behavior for posix.open; fix tempfiles.createTempFile * fix for tests/async/tasyncfile.nim * hide mode for now * add notice regarding stability
This commit is contained in:
parent
5edddd68d0
commit
e4db733d80
3 changed files with 16 additions and 4 deletions
|
|
@ -1503,6 +1503,7 @@ when false:
|
|||
of fmReadWrite: flags = O_RDWR or int(O_CREAT)
|
||||
of fmReadWriteExisting: flags = O_RDWR
|
||||
of fmAppend: flags = O_WRONLY or int(O_CREAT) or O_APPEND
|
||||
static: doAssert false # handle bug #17888
|
||||
var handle = open(filename, flags)
|
||||
if handle < 0: raise newEOS("posix.open() call failed")
|
||||
result = newFileHandleStream(handle)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue