ha_close
![]() |
![]() |
![]() |
![]() |
ha_close()
Detach an attached HA file descriptor, then close it
Synopsis:
#include <ha/unistd.h> int ha_close(int fd);
Library:
libha
Description:
The ha_close() convenience function detaches a connection that was previously attached using ha_attach(), and then closes the connection.
The fd is the file descriptor originally obtained from ha_open().
Returns:
- 0
- Success
- -1
- An error occurred (errno is set).
Errors:
The ha_close() function returns errors as returned by either the underlying close() call or the ha_detach() call.
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
ha_attach(), ha_ConnectDetach(), ha_detach(), ha_open()
In the Library Reference: close()
![]() |
![]() |
![]() |
![]() |
![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)