setuid function
Set the user ID of the calling process to UID. If the calling process is the super-user, set the real and effective user IDs, and the saved set-user-ID to UID; if not, the effective user ID is set to UID.
Implementation
void setuid(
int uid,
) {
_setuid ??= Libc()
.dylib
.lookupFunction<ffi.Int32 Function(ffi.Uint32), _dart_setuid>('setuid');
final result = _setuid!(
uid,
);
_throwIfError('setuid', result);
}