setegid function

void setegid(
  1. int gid
)

Set the effective group ID of the calling process to GID. Throws PosixException if the operation fails.

Implementation

void setegid(
  int gid,
) {
  _setegid ??= Libc()
      .dylib
      .lookupFunction<ffi.Int32 Function(ffi.Uint32), _dart_setegid>('setegid');
  final result = _setegid!(
    gid,
  );

  _throwIfErrno('setegid', result);
}