GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HCLOSE(3) libdill Library Functions HCLOSE(3)

hclose - hard-closes a handle


#include <libdill.h>
int hclose(
    int h);

    

This function closes a handle. Once all handles pointing to the same underlying object have been closed, the object is deallocated immediately, without blocking.

The function guarantees that all associated resources are deallocated. However, it does not guarantee that the handle's work will have been fully finished. E.g., outbound network data may not be flushed.

In the case of network protocol sockets the entire protocol stack is closed, the topmost protocol as well as all the protocols beneath it.

h: The handle.

In case of success the function returns 0. In case of error it returns -1 and sets errno to one of the values below.

EBADF: Invalid handle.
ENOTSUP: The handle does not support this operation.


int ch[2];
chmake(ch);
hclose(ch[0]);
hclose(ch[1]);

    

hmake(3) hown(3) hquery(3)
libdill

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.