<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="https://tanguy.ortolo.eu/blog/feed/rss/commentaires/" />
	<link>https://tanguy.ortolo.eu/blog/article48/everything-file</link>
	<language>en</language>
	<description>a blog about Debian and self-hosting</description>
	<lastBuildDate>Tue, 17 Apr 2012 22:41:00 +0000</lastBuildDate>
	<generator>PluXml</generator>
	<item>
		<title>“Everything is a file” rocks - Written by Adam Skutt @ tuesday 17 april 2012, 22:41</title> 
		<link>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334702518-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334702518-1</guid>
		<description>Nope, there are plenty of things that you cannot open(2): sockets, certain types of pipes, certain types of devices.  Some interfaces have specific and unusual semantics for open(2), such as named sockets.

Some devices don&amp;#039;t support read/write.  Some socket drivers don&amp;#039;t support them either under certain conditions.

Many things don&amp;#039;t support mmap(2).

As I said originally, the only thing that&amp;#039;s universally supported is close(2).  Only the most basic I/O code can be written without considering what I/O interfaces will be involved.</description>
		<pubDate>Tue, 17 Apr 2012 22:41:00 +0000</pubDate>
		<dc:creator>Adam Skutt</dc:creator>
	</item>
	<item>
		<title>“Everything is a file” rocks - Written by Jakob @ tuesday 17 april 2012, 20:47</title> 
		<link>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334695638-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334695638-1</guid>
		<description>I am using “dd of=/dev/stdout if=/dev/zero foo=bar” all the time!  ;)</description>
		<pubDate>Tue, 17 Apr 2012 20:47:00 +0000</pubDate>
		<dc:creator>Jakob</dc:creator>
	</item>
	<item>
		<title>“Everything is a file” rocks - Written by Tranxene50 @ tuesday 17 april 2012, 20:39</title> 
		<link>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334695151-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334695151-1</guid>
		<description>&amp;gt; &amp;quot;Everything is a file&amp;quot; is the biggest lie of Unix.

Please, could you explain, more precisely?

Everything can be opened, read and written so, IMHO, yes, everything is a file.

Cheers.</description>
		<pubDate>Tue, 17 Apr 2012 20:39:00 +0000</pubDate>
		<dc:creator>Tranxene50</dc:creator>
	</item>
	<item>
		<title>“Everything is a file” rocks - Written by 9fan @ tuesday 17 april 2012, 19:10</title> 
		<link>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334689809-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334689809-1</guid>
		<description>&amp;quot;Everything is a file&amp;quot; is the biggest lie of Unix. Take a closer look at Plan 9.</description>
		<pubDate>Tue, 17 Apr 2012 19:10:00 +0000</pubDate>
		<dc:creator>9fan</dc:creator>
	</item>
	<item>
		<title>“Everything is a file” rocks - Written by Tanguy @ tuesday 17 april 2012, 11:03</title> 
		<link>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334660629-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334660629-1</guid>
		<description>@Eddi : No it is not. /dev/std* do exist and they are symlinks to /proc/self/sd*, where /proc/self is itself a symlink to the current process. So in fact, /dev/stdin points to /proc/PID/fd/0. When that process was launched without a redirection, this is a symlink to the corresponding terminal device, for instance /dev/tty1 or /dev/pts/1. When it was launched with a file redirection it is a symlink to that file, and when it was launched in a pipeline it is a symlink to some kind of pipe identifier.</description>
		<pubDate>Tue, 17 Apr 2012 11:03:00 +0000</pubDate>
		<dc:creator>Tanguy</dc:creator>
	</item>
	<item>
		<title>“Everything is a file” rocks - Written by Eddi @ tuesday 17 april 2012, 10:30</title> 
		<link>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334658616-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334658616-1</guid>
		<description>But, as it seems, this handling of /dev/stdin is a Bash feature!  Maybe other shells (Zsh comes to mind) support that too.</description>
		<pubDate>Tue, 17 Apr 2012 10:30:00 +0000</pubDate>
		<dc:creator>Eddi</dc:creator>
	</item>
	<item>
		<title>“Everything is a file” rocks - Written by Stan Schwertly @ tuesday 17 april 2012, 00:05</title> 
		<link>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334621157-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334621157-1</guid>
		<description>I love this! Saving the idea for later for when a second dash on the parameter won&amp;#039;t switch to STDIN!</description>
		<pubDate>Tue, 17 Apr 2012 00:05:00 +0000</pubDate>
		<dc:creator>Stan Schwertly</dc:creator>
	</item>
	<item>
		<title>“Everything is a file” rocks - Written by Adam Skutt @ monday 16 april 2012, 19:35</title> 
		<link>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334604922-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article48/everything-file/#c1334604922-1</guid>
		<description>Except everything isn&amp;#039;t a file.  You can&amp;#039;t seek pipes or sockets.  You can&amp;#039;t do select/poll based non-blocking I/O on actual files on disk.  The only common operation supported by everything is close(2).

And while most applications should probably support I/O operations from stdin to stdout, it&amp;#039;s just not feasible for all operating modes of several key UNIX applications like sort(1) and join(1).

Windows NT does the &amp;quot;Everything is a handle&amp;quot; thing much better since it has actual support for polymorphic handles, though it still has a considerable number of warts.</description>
		<pubDate>Mon, 16 Apr 2012 19:35:00 +0000</pubDate>
		<dc:creator>Adam Skutt</dc:creator>
	</item>
		<title>Tanguy Ortolo - “Everything is a file” rocks - Comments</title> 
</channel>
</rss>