native_fgetgrent function

Group native_fgetgrent(
  1. Pointer<IO_FILE> __stream
)

Read a group entry from STREAM.

This function is not part of POSIX and therefore no official cancellation point. But due to similarity with an POSIX interface or due to the implementation it is a cancellation point and therefore not marked with __THROW.

Implementation

// ignore: non_constant_identifier_names
Group native_fgetgrent(
  ffi.Pointer<IO_FILE> __stream,
) {
  clearErrno();
  _fgetgrent ??= Libc().dylib.lookupFunction<
      ffi.Pointer<group> Function(ffi.Pointer<IO_FILE>),
      _dart_fgetgrent>('fgetgrent');

  return _buildGroup(
      _fgetgrent!(__stream),
      'Error occured attempting to get the next group entry from the group'
      ' database stream');
}