file:read_file/1 - bug or feature?

Jimmy Olgeni olgeni@REDACTED
Sun Oct 19 22:55:15 CEST 2003

On Sun, 19 Oct 2003, david wallin wrote:

> file:read_file("/proc//loadavg").
> and got '{ok, <<>>}' as a reply.

Is the file length equal to 0? Maybe that's confusing the file
library. I get the same on FreeBSD:

3> file:read_file ("/proc/0/cmdline").

But it should be "swapper".

Does "invoke_read_file" in "efile_drv.c" do things with the file size? :)


More information about the erlang-questions mailing list