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

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

surdeus

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