Sujet : Re: Can 'graphics' be a file descriptor?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 01. Jan 2025, 20:25:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vl44s5$2tjip$1@dont-email.me>
References : 1 2 3 4
User-Agent : Pan/0.161 (Chasiv Yar; )
On Wed, 1 Jan 2025 12:07:07 +0000, bart wrote:
Actually I'm surprised that in Linux, everything isn't already a file
anyway.
There are three separate ideas you will come across in Linux:
* Everything is a file
* Everything is a file descriptor
* Everything is a filesystem
Examples of the first one: Unix sockets, named pipes, device files
Examples of the second one: pidfd, signalfd, timerfd, poll
Examples of the third one: procfs, sysfs, securityfs, cgroup2