Chemical
Dark
Light
Paper
Themes
Dark
Light
Paper
Modules
cstd
core
std
compiler
compiler_runtime
lab
transformer
atomic
async
crashsave
osrand
crypto
encoding
bcrypt
uuid
regex
datetime
path
fs
compression
archive
image
audio
font
mime
json
html_comp
html_parser
html
ide
minlsp
html_ide
css_parser
css
css_ide
js_syntax
universal_parser
js_parser
js
js_cbi_lexer
js_ide
md_parser
md
md_ide
universal
universal_ide
page
net
tls
http
server
environment
process
window
webview
docgen
test_env
test
api
file_io.ch
Declarations in
file_io.ch
1
declarations
fs
Declarations
Public only
fs
#
Public
namespace
namespace
fs
file_open_native
#
function
func
file_open_native(path :
path_ptr
, opts :
OpenOptions
) :
Result
<
File
,
FsError
>
copy
file_close
#
Public
function
func
file_close(f : *
File
) :
Result
<
UnitTy
,
FsError
>
copy
file_read
#
Public
function
func
file_read(f : *
File
, buf : *u8, buf_len : size_t) :
Result
<size_t,
FsError
>
copy
file_write
#
Public
function
func
file_write(f : *
File
, buf : *u8, buf_len : size_t) :
Result
<size_t,
FsError
>
copy
file_flush
#
Public
function
func
file_flush(f : *
File
) :
Result
<
UnitTy
,
FsError
>
copy
remove_file_native
#
Public
function
func
remove_file_native(path :
path_ptr
) :
Result
<
UnitTy
,
FsError
>
copy
set_times_native
#
function
func
set_times_native(path :
path_ptr
, atime : i64, mtime : i64) :
Result
<
UnitTy
,
FsError
>
copy
copy_file_native
#
function
func
copy_file_native(src :
path_ptr
, dst :
path_ptr
) :
Result
<
UnitTy
,
FsError
>
copy
create_temp_file_in_native
#
function
func
create_temp_file_in_native(dir :
path_ptr
, prefix :
path_ptr
, out_path :
mut_path_ptr
, fh : *
File
) :
Result
<
UnitTy
,
FsError
>
copy
remove_file
#
Public
function
func
remove_file(path : *char) :
Result
<
UnitTy
,
FsError
>
copy
copy_file
#
Public
function
func
copy_file(src : *char, dst : *char) :
Result
<
UnitTy
,
FsError
>
copy
create_temp_file_in
#
function
func
create_temp_file_in(dir : *char, prefix : *char, out_path : *char, out_len : size_t, fh : *
File
) :
Result
<
UnitTy
,
FsError
>
copy
file_open
#
Public
function
func
file_open(path : *char, opts :
OpenOptions
) :
Result
<
File
,
FsError
>
copy
set_times
#
Public
function
func
set_times(path : *char, atime : i64, mtime : i64) :
Result
<
UnitTy
,
FsError
>
copy
Show Debug Info
Generated from: /home/runner/work/chemical/chemical/chemical-tcc/libs/fs/posix/file_io.ch
File ID: 149
↑