Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

int close ( int  desc  ) 

Closes the specified file descriptor.

Parameters:
desc The file descriptor to be closed.
Returns:
Open returns zero on success. On error, it returns -1 and sets errno appropriately.

Definition at line 17 of file close.c.

References close().

Referenced by UnicodeSet::applyPropertyPattern(), nacl::BoundSocket(), nacl::Close(), close(), evdns_resolv_conf_parse(), parseOneConfigFile(), pthread_cond_destroy(), and pthread_mutex_destroy().

                    {
  int retval = NACL_SYSCALL(close)(desc);
  if (retval < 0) {
    errno = -retval;
    return -1;
  }
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index