tcsetpgrp function

int tcsetpgrp(
  1. int fd,
  2. int pgrpId
)

Set the foreground process group ID of FD set PGRP_ID.

Implementation

int tcsetpgrp(
  int fd,
  int pgrpId,
) {
  _tcsetpgrp ??= Libc().dylib.lookupFunction<
      ffi.Int32 Function(ffi.Int32, ffi.Int32), _dart_tcsetpgrp>('tcsetpgrp');
  return _tcsetpgrp!(
    fd,
    pgrpId,
  );
}