[erlang-questions] file:open/2 and Unix Device Files
Martin Scholl
ms@REDACTED
Tue Nov 4 14:12:24 CET 2008
Quoting Colm Dougan <colm.dougan@REDACTED>:
> On Tue, Nov 4, 2008 at 11:52 AM, Martin Scholl <ms@REDACTED> wrote:
>> Hello,
>>
>>
>> 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.
>
> Colm
>
More information about the erlang-questions
mailing list