<div dir="ltr"><div>Erlang/OTP 18 [erts-7.1] [source-2882b0c] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]</div><div><br></div><div>Eshell V7.1  (abort with ^G)</div><div>1> os:getpid().</div><div>"24801"</div><div>2> os:getuid().</div><div>** exception error: undefined function os:getuid/0</div><div>3> </div><div><br></div><div>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</div><div><br></div><div><a href="https://github.com/sergey-miryanov/erlang-setuid/blob/master/src/setuid.erl">https://github.com/sergey-miryanov/erlang-setuid/blob/master/src/setuid.erl</a><br></div><div><a href="https://github.com/sergey-miryanov/erlang-setuid/blob/master/priv/setuid_drv.c">https://github.com/sergey-miryanov/erlang-setuid/blob/master/priv/setuid_drv.c</a><br></div></div>