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-09-07 10:54:39 -05:00
2020-08-31 19:32:14 -05:00
2020-09-01 10:55:09 +02:00
2020-03-30 10:23:16 +02:00
2020-03-23 23:53:54 +01:00
2020-01-25 13:48:26 -06:00
2020-06-28 20:40:20 +02:00
2019-11-25 15:08:47 +01:00
2020-05-24 12:03:06 +02:00
2019-11-07 09:17:40 +01:00
2019-09-20 08:53:35 +02:00
2020-03-27 08:43:08 -04:00
2020-03-06 08:21:53 -05:00
2019-11-25 15:08:47 +01:00
2020-09-07 13:10:31 +02:00
2020-06-06 16:54:13 +00:00
2020-08-27 09:27:58 +02:00
2020-05-20 00:00:35 +02:00
2020-01-19 10:03:18 -06:00
2020-01-19 10:03:18 -06:00
2020-06-22 11:32:01 +02:00
2019-11-08 12:43:26 +01:00
2020-09-02 20:57:20 -05:00
2020-09-02 20:57:20 -05:00
2020-08-01 14:18:52 +02:00
2020-06-28 20:40:20 +02:00
2020-03-22 08:55:39 +01:00
2020-05-30 09:23:25 +02:00
2019-08-18 11:34:09 +02:00
2020-06-20 11:48:42 +02:00
2020-01-19 10:03:18 -06:00
2020-09-07 15:05:26 -05:00
2020-09-07 11:29:47 +02:00
2020-06-01 01:12:31 +02:00