Friday, May 1, 2026

What is a file descriptor?

An integer that refers to an open file, socket, or pipe. Standard ones:

  • 0 → stdin
  • 1 → stdout
  • 2 → stderr

No comments:

Post a Comment