Rename wasi_config_set_std[in|out|err].

This commit renames `wasi_config_set_std[in|out|err]` to
`wasi_config_set_std[in|out|err]_file` so we can reserve the former for
when the C API supports a stream abstraction.
This commit is contained in:
Peter Huene
2020-02-25 13:48:33 -08:00
parent fa65a14dba
commit c92bf4d863
4 changed files with 12 additions and 12 deletions

View File

@@ -83,7 +83,7 @@ pub unsafe extern "C" fn wasi_config_inherit_env(config: *mut wasi_config_t) {
}
#[no_mangle]
pub unsafe extern "C" fn wasi_config_set_stdin(
pub unsafe extern "C" fn wasi_config_set_stdin_file(
config: *mut wasi_config_t,
path: *const c_char,
) -> bool {
@@ -103,7 +103,7 @@ pub unsafe extern "C" fn wasi_config_inherit_stdin(config: *mut wasi_config_t) {
}
#[no_mangle]
pub unsafe extern "C" fn wasi_config_set_stdout(
pub unsafe extern "C" fn wasi_config_set_stdout_file(
config: *mut wasi_config_t,
path: *const c_char,
) -> bool {
@@ -123,7 +123,7 @@ pub unsafe extern "C" fn wasi_config_inherit_stdout(config: *mut wasi_config_t)
}
#[no_mangle]
pub unsafe extern "C" fn wasi_config_set_stderr(
pub unsafe extern "C" fn wasi_config_set_stderr_file(
config: *mut wasi_config_t,
path: *const c_char,
) -> bool {