[erlang-questions] file:open/2 and Unix Device Files
Tue Nov 4 13:19:11 CET 2008
On Tue, Nov 4, 2008 at 11:52 AM, Martin Scholl <ms@REDACTED> wrote:
> I have just noticed that opening a device file other than "/dev/null"
> will fail with eisdir.
> I am just wondering what the intention behind this was. Could somebody
> elaborate on why this restriction is in place?
I don't have the answer to that. However, in case you were not aware,
if you open a file in "raw" mode then you can read device files.
More information about the erlang-questions