Why are Linux file descriptors and Windows file handles are considered different things by a standard library?

⚓ Rust    📅 2025-08-30    👤 surdeus    👁️ 11      

surdeus

Warning

This post was published 94 days ago. The information described in this article may have changed.

Hello everyone!

I've noticed that the Rust standard library distinguishes concepts of Unix file descriptor and Windows file handle. However, as far as I understand, both can serve either as a reference to the open file that can be used for I/O or other manipulation, or a reference to some other object for some other tasks, and Rust standard library interface to them look similar. I wonder, what is the reason for such distinction?

2 posts - 2 participants

Read full topic

🏷️ Rust_feed