Alt text: meme with the ‘Always has been’ format Linux, MacOS, OpenBSD and ChromeOS logos on top of the Earth The first astronaut says ‘Wait, it’s all Unix?’ A Windows logo, on top of the second astronaut. The second astronaut says ‘Always has been’ and points a gun to the first astronaut.

    • Rustmilian
      link
      fedilink
      English
      108 months ago

      Everything is represented by a file, doesn’t mean you can open it with a text editor.

    • @jabjoe@feddit.uk
      link
      fedilink
      English
      2
      edit-2
      8 months ago

      More like file descriptor. File path is like address system, but it’s not how you get all file descriptors. For example: sockets (there is bash’s fake /dev/{tcp,udp}), epoll, timer, event, inotify.

      In UNIX systems event systems have a list of filedescriptors with a callback for each. You could have your event loop an epoll fd itself and nest it in another.