FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
File Descriptors: The Numbers Behind Everything
NewsSystems

File Descriptors: The Numbers Behind Everything

via Dev.toNaz Quadri3h ago

File Descriptors: The Numbers Behind Everything The Integers That Run Your System Reading time: ~13 minutes You called open("config.toml") and got back the number 3 . Not a file handle. Not a stream object. Not a path. A small integer. The language runtime probably wrapped it in something friendlier — a File object, a BufferedReader , an io.TextIOWrapper — but that wrapping happens after the kernel gave you a number. The number is the real thing. That number is a file descriptor , and it's the single abstraction that holds together files, sockets, pipes, terminals, timers, signals, and /dev/null . They are all just integers pointing into a kernel table. Understanding that table — and what the kernel does with it — will explain a dozen things that have probably confused you at some point. The Three That Are Already There Every Unix process starts with three file descriptors already open. stdin is 0. stdout is 1. stderr is 2. You didn't open them. They were inherited from your parent pro

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

Robotaxi companies refuse to say how often their AVs need remote help
News

Robotaxi companies refuse to say how often their AVs need remote help

TechCrunch • 3h ago

I Set the Thread Pool to 8 and Brought Down Black Friday
News

I Set the Thread Pool to 8 and Brought Down Black Friday

Medium Programming • 3h ago

News

How I Built Simple Automation Systems That Save Time (And Why Businesses Need Them)

Medium Programming • 4h ago

News

wastrelly wabbits

Lobsters • 4h ago

Pidgin 3.0 Alpha 1 2.95.0 has been released
News

Pidgin 3.0 Alpha 1 2.95.0 has been released

Lobsters • 4h ago

Discover More Articles