More fundamentally, what facility exists that allows one to determine attributes of the current julia process? There's a function getpid(), but there doesn't appear to be getuid() or getgid() -- if they exist.
It would be useful to have access to this information. A single call get_process_env() which would return a Dict would be useful. I see that this might be a portability problem, but under those circumstances, the getuid could return 0, or would simply not exist in the dict. There is already this: ./deps/llvm-3.3/lib/Support/Unix/Process.inc: return getuid();