getpwuid function
Retrieve the user database entry for the given user ID.
Throws a PosixException if uid
is not a know uid.
This function is a possible cancellation point and therefore not marked with __THROW.
Implementation
Passwd getpwuid(
int uid,
) {
_getpwuid ??= Libc().dylib.lookupFunction<
ffi.Pointer<_passwd> Function(ffi.Uint32), _dart_getpwuid>('getpwuid');
return _buildPasswd(
_getpwuid!(
uid,
),
'Error occured attempting to retrieve Passwd for uid: $uid');
}