[erlang-questions] where is os:getuid() ?

Pierre Fenoll pierrefenoll@REDACTED
Mon Nov 23 20:19:59 CET 2015

Maybe such a thing can be implemented by the community and integrated in
future releases?

Now that we have an open issue tracker, could we put feature requests there
and have people randomly work on them?

Pierre Fenoll

On 23 November 2015 at 20:09, Jesper Louis Andersen <
jesper.louis.andersen@REDACTED> wrote:

> On Mon, Nov 23, 2015 at 7:02 PM, derek <denc716@REDACTED> wrote:
>> wonder how many other POSIX system calls are not implemented in erlang
>> standard library
> Many! Most calls implemented is there due to a need by someone. This is
> why some of the system calls, however likely to be used, has not yet been
> implemented. Erlang doesn't in general provide a POSIX interface to the
> underlying Operating System, and many parts doesn't map well into the
> Erlang model.
> All hope is not lost however, since
> list_to_integer(string:strip(os:cmd("id -u"), right, $\n)).
> solves your problem. Granted, it performs worse than asking for the uid
> directly, but I've rarely seen a program who needed to manipulate uids
> otherwise, written in Erlang. May I ask what you are trying to do?
> --
> J.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151123/608ebf26/attachment.htm>

More information about the erlang-questions mailing list