netclose(3)

netclose3

Close an existing socket

Usage

#include "net.h"

int netclose (int s);

Overview

netclose closes an existing socket.

Return value

This routine returns zero if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.

Errors

EINTR

The function was interrupted by a signal.

EBADF

s is not a valid descriptor.

ENOTSOCK

s is not a socket.

Releases

Unchanged in 5 releases since Debian 6.0 (Squeeze).

  1. 6.0–10

Author

LCG Grid Deployment Team

From liblcgdm-dev 1.10.0-2+b3 in Debian 10 (Buster). Parsed by carta from the page's man source.