| 1 | //! Platform-dependent file descriptor abstraction. |
|---|---|
| 2 | |
| 3 | #![forbid(unsafe_op_in_unsafe_fn)] |
| 4 | |
| 5 | cfg_select! { |
| 6 | any(target_family = "unix", target_os = "wasi") => { |
| 7 | mod unix; |
| 8 | pub use unix::*; |
| 9 | } |
| 10 | target_os = "hermit"=> { |
| 11 | mod hermit; |
| 12 | pub use hermit::*; |
| 13 | } |
| 14 | target_os = "motor"=> { |
| 15 | mod motor; |
| 16 | pub use motor::*; |
| 17 | } |
| 18 | all(target_vendor = "fortanix", target_env = "sgx") => { |
| 19 | mod sgx; |
| 20 | pub use sgx::*; |
| 21 | } |
| 22 | _ => {} |
| 23 | } |
| 24 |
