Handbook
Glossary
open-append ( path -- fd )
Vocabulary
io
.
files
.
unix
Inputs
path
an
object
Outputs
fd
an
object
Definition
USING:
accessors
continuations
destructors
io.backend.unix
kernel
libc
math
unix
unix.ffi
;
IN:
io.files.unix
:
open-append
( path -- fd )
[
append-flags
O_NONBLOCK
bitor
file-mode
open-file
|close-file
[
dup
0
SEEK_END
[
lseek
]
unix-system-call
drop
]
[
dup
errno>>
ESPIPE
=
[
drop
]
[
rethrow
]
if
]
recover
]
with-destructors
;