rust/tests/compile-fail
Samrat Man Singh 563fb8e43d Implement dup and close for stdin/stdout/stderr
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
2020-09-09 23:26:33 +05:30
..
2020-06-26 20:36:08 +02:00
2020-05-25 00:02:54 +02:00
2020-07-07 22:48:51 +02:00
2020-06-20 11:48:42 +02:00
2020-05-07 08:38:59 +02:00
2020-07-23 15:56:38 +02:00
2020-07-09 17:21:09 +02:00
2020-04-25 11:12:50 +02:00
2020-05-22 17:03:25 +02:00
2020-03-25 09:32:15 +01:00