uidtontsid() - retrieve user's NT security ID
#include <interix/security.h>
char * uidtontsid(uid_t uid)
The uidtontsid(2) call retrieves the Windows security ID of the user specified by uid, and returns a pointer to a static buffer that contains the security ID as an ASCII string.
Windows security IDs are unique throughout time and space; a POSIX user ID under Windows is only unique within a trusted domain network.
On success, uidtontsid(2) returns a pointer to a static buffer. On failure, it returns NULL and sets errno to indicate the cause of the error.
The following errors can be set: