getgrent function

Group getgrent()

Read an entry from the group-file stream, opening it if necessary.

This function is a possible cancellation point and therefore not marked with __THROW.

Implementation

Group getgrent() {
  clearErrno();
  _getgrent ??= Libc()
      .dylib
      .lookupFunction<ffi.Pointer<group> Function(), _dart_getgrent>(
          'getgrent');
  return _buildGroup(
      _getgrent!(),
      'Error occured attempting to get the next group entry from '
      'the group database stream');
}