563fb8e43d
Support F_DUPFD on stdin/stdout/stderr Enable `close`-ing stdin/stdout/stderr For `dup`, check if FD is `File` first If not, clone the appropriate standard IO stream Merge POSIX `close` and `dup` tests into same module Also, add assertion that `write` on a closed FD returns an error. Add `dup` as FileDescriptor trait fn Also: - Fix `close` so it drops `self` instead of reference to it - Remove FD clamping in insert_fd_with_min_fd, since FDs 0-2 can be closed Fix fs_libc tests Make error message when closing stdin/out/err more specific Return io::Result from `FileDescriptor::dup` Change error message when closing stdin/out/err Refactor `FileDescriptor::dup` impl for `FileHandle` Remove empty line |
||
---|---|---|
.. | ||
alloc | ||
concurrency | ||
dangling_pointers | ||
fs | ||
function_pointers | ||
intrinsics | ||
panic | ||
stacked_borrows | ||
sync | ||
unaligned_pointers | ||
validity | ||
abort-terminator.rs | ||
check_arg_count_too_few_args.rs | ||
check_arg_count_too_many_args.rs | ||
environ-gets-deallocated.rs | ||
erroneous_const.rs | ||
extern_static.rs | ||
generator-pinned-moved.rs | ||
invalid_bool.rs | ||
invalid_char.rs | ||
invalid_enum_tag.rs | ||
invalid_int.rs | ||
issue-miri-1112.rs | ||
memleak_rc.rs | ||
memleak.rs | ||
modifying_constants.rs | ||
never_say_never.rs | ||
never_transmute_humans.rs | ||
never_transmute_void.rs | ||
no_main.rs | ||
null_pointer_deref_zst.rs | ||
null_pointer_deref.rs | ||
null_pointer_write_zst.rs | ||
null_pointer_write.rs | ||
overwriting_part_of_relocation_makes_the_rest_uninit.rs | ||
pointer_byte_read.rs | ||
rc_as_ptr.rs | ||
reading_half_a_pointer.rs | ||
rustc-error.rs | ||
shim_arg_size.rs | ||
slice-too-big.rs | ||
static_memory_modification1.rs | ||
static_memory_modification2.rs | ||
static_memory_modification3.rs | ||
storage_dead_dangling.rs | ||
transmute_fat1.rs | ||
transmute-pair-uninit.rs | ||
uninit_buffer.rs | ||
uninit_byte_read.rs | ||
unreachable.rs | ||
zst1.rs | ||
zst2.rs | ||
zst3.rs |