[erlang-questions] file:open on devices

Alexey Romanov alexey.v.romanov@REDACTED
Sat Dec 25 10:24:25 CET 2010


Thank you, now that limitation makes sense!

Yours, Alexey Romanov



On Fri, Dec 24, 2010 at 5:06 PM, Evans, Matthew <mevans@REDACTED> wrote:
> It's not possible to do this from Erlang IRC:
>
> http://www.erlang.org/faq/problems.html#id57466
>
> Your best bet is probably a port-driver or a NIF.
>
> ________________________________________
> From: erlang-questions@REDACTED [erlang-questions@REDACTED] On Behalf Of Alexey Romanov [alexey.v.romanov@REDACTED]
> Sent: Friday, December 24, 2010 6:58 AM
> To: Erlang Questions
> Subject: [erlang-questions] file:open on devices
>
> I have tried to use sl to communicate with a serial port, but with
> limited success (so far, at least). The next thing to try was just
> opening the file and reading/writing directly to it, but this fails as
> well:
>
> (documentation of file:open/2)
> Typical error reasons:
>
> eisdir
>
>    The named file is not a regular file. It may be a directory, a
> fifo, or a device.
>
> Is it possible to open device files using some other library function?
>
> Yours, Alexey Romanov
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list