@oheil Thanks for your snippet!
Ok, it is OS dependent, on linux it works, on MS Windows not.
It is the same with pptr = ccall(:getpwnam, Ptr{Ptr{Cvoid}}, (Cstring,), ENV["USER"]),
on linux it is possible to execute the command on Windows not
.
Meanwhile, I found the function: “Base.Libc.getpwuid()”, is there a chance to call this function?
Under Julia v1.7.1 on a “MS Windows 10”-system the call fails with the error message:
operation not supported on socket (ENOTSUP).