fchown function

int fchown(
  1. int fd,
  2. int owner,
  3. int group
)

Change the owner and group of the file that FD is open on.

Implementation

int fchown(
  int fd,
  int owner,
  int group,
) {
  _fchown ??= Libc().dylib.lookupFunction<
      ffi.Int32 Function(ffi.Int32, ffi.Uint32, ffi.Uint32),
      _dart_fchown>('fchown');
  return _fchown!(
    fd,
    owner,
    group,
  );
}