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

derek denc716@REDACTED
Mon Nov 23 19:02:58 CET 2015


Erlang/OTP 18 [erts-7.1] [source-2882b0c] [64-bit] [smp:8:8]
[async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.1  (abort with ^G)
1> os:getpid().
"24801"
2> os:getuid().
** exception error: undefined function os:getuid/0
3>

I'm surprised such a fundamental api call is not there in erlang and has to
be done in some c_driver like this one? wonder how many other POSIX system
calls are not implemented in erlang standard library

https://github.com/sergey-miryanov/erlang-setuid/blob/master/src/setuid.erl
https://github.com/sergey-miryanov/erlang-setuid/blob/master/priv/setuid_drv.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151123/86fb9f47/attachment.htm>


More information about the erlang-questions mailing list