close function

int close(
  1. int fd
)

Close the file descriptor FD.

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

Implementation

int close(
  int fd,
) {
  _close ??= Libc()
      .dylib
      .lookupFunction<ffi.Int32 Function(ffi.Int32), _dart_close>('close');
  return _close!(
    fd,
  );
}